To get dog smell of of carpet mix 2 cups of vinegar and 2 cups of baking soda in a spray bottle and spray the carpet or area of the carpet where the dog odor is.
Let the solution sit on the carpet for 5 minutes then use an Upholstery or carpet cleaner to clean it up.
You can also mix the vinegar, baking soda and water together in a carpet cleaner and deep clean the carpet with the solution.
The baking soda and vinegar will help to neutralize the odor and make your carpets smell good.