You can't get the smell of dog pee out of the carpet if you don't know where it is! If your house smells like dog urine but you can't see the source, try a UV flashlight.
UV light illuminates any substance containing phosphors (including dog pee), making it easy for you to locate and treat set-in urine stains.