Haha, they are such clever dogs!
I gave my boy treats, after he both pooped and peed outside.
Then he decided to pee, collect a treat, march off to poop, and then collect another treat.
I could have been strict, but decided that his cleverness deserved to be rewarded. Besides, outsmarting me probably made him feel proud.
(He never had any accidents in the house.)