I find my dogs need to go out straight after being fed or 10 mins after at the most. After the pup eats or drinks 5-10 mins later get her outside on a long leash and say go wee wees or whatever you use have a treat bag attached to your waist and when the pup goes praise and treat right away.
If catch the pup going inside say no pick him/her up and say outside and carry outside and give the command you use to do it outside. when goes praise and treat right away and say it in a happy proud voice patting the dog. same for after playing get the pup outside for wee right away and repeat
If catch the pup going inside say no pick him/her up and say outside and carry outside and give the command you use to do it outside. when goes praise and treat right away and say it in a happy proud voice patting the dog. same for after playing get the pup outside for wee right away and repeat