It can often be an indicator of a health problem like a urinary tract infection. You should take your dog to the vet to be sure because they need treatment or they can become very ill and even die and the sooner you catch it the easier it is to treat. Has your dog also been drinking more water and as a result having to go more? That can be an early sign of many problems like thyroid, diabetes, and infection. So you must go to your vet first for something like this.
After you've gone to the vet and established whether or not there is a physical cause sometimes you just have to go back to basics and do a refresher course. Have you bred your dog? They change when you breed and marking becomes a part of their behavior (and other things change too), they are breeder's now. Could your dog be upset about something? Sometimes it's their way of telling us they are upset about a situation.
After you've gone to the vet and established whether or not there is a physical cause sometimes you just have to go back to basics and do a refresher course. Have you bred your dog? They change when you breed and marking becomes a part of their behavior (and other things change too), they are breeder's now. Could your dog be upset about something? Sometimes it's their way of telling us they are upset about a situation.