Some dogs just scoot occasionally their little bottoms on the carpet, but others have frequent -, chronic anal gland infections.
If your pet is one of the unfortunately ones who has such problem, ask yourself first of why he/she has it to begin with. To just try to treat the symptoms without researching the underlying reason, is often difficult, and the problem will just come back over and over again.

Among my own Papillons, I had a Pap who frequently came down with anal gland infection, but it has been now numerous months since I had switched to a raw meat/ raw bone diet, and he had not a single one infection since.
If you have not done so, you might have a good look into feeding your dog a raw food diet, and, of course, provide him plenty of exercise. You might be surprised to see the problem disappear.

( I actually put the cloth into a female pant for a while, it fits the boys just fine)
Calendula extract is available on line.I get it from Amazon.
I have also used Calcium Bentonite clay, also available on line, and at Amazon. The clay as a dressing works also wonders, as it draws out the poison, and dries up the wound.
Anal gland Problems
Bentonite Clay
Calendula
http://www.roadsend-papillons-phalenes.com/2011/02/anal-gland-problem-in-papillonsphalenes.html