
I assume this is a dog that has been reliably house trained already?
If so then this is likely to primarily be a behavioral/training issue.
So working outbwhy, and then looking at long term solutions.
A friend had this issue with her Doberman male when he reached puberty.
After he peed into a socket and blew the electrics she had to do something.
The something she didvwas supervision, containment, and disaproval/redirection of attempts to 'mark' indoors.
She kept at it solidly for about 6 weeks. He was crated all the time he was not strictly wstched or in garden.
I assume it's marking due to locations.
If it's full bladder emptying, then a check on if there is a health issue, infection?