Take your dog out frequently, especially first thing in the morning, after meals, after naps, and before bedtime.
Use a command like "go potty" when your dog is in the act of urinating. This associates the command with the action and makes potty training easier.
Reward and praise your dog with treats and affection immediately after they go potty in the right spot.
Limit your dog's access to the house until they are fully potty trained. Use baby gates or crate training to restrict access to rooms.
Clean accidents thoroughly with an enzymatic cleaner to remove odors that attract dogs to soil in the same spot again.
Supervise your dog closely when they are indoors. Look for sniffing, circling or other potty signals and immediately take them outside.
Provide plenty of exercise and playtime to prevent boredom and destructive behaviors like indoor peeing.