Yappy New Hear!!
Well now, anal glands ... they contain (normally!) doggy pheremonal smelly stuff, which is exuded as they pass their motions - the glands are located inside, along the top arc of the anus, and sometimes dogs can just squit a bit of anal-gland juice if they really want to mark something!!
Problems can arise if their diet is not sufficiently fibre-based, and their motions are too soft to encourage this liqour from passing out regularly. It can then start leaking out on its own, and yes, it is very smelly!
I eventually got the Vet to show me (and let me try to do it) how to empty full anal glands, and I suggest that if you are in any doubt about your dog's glands, you get your Vet to do the same - I could try to explain, but it is really something you have to be shown I think. Not that it is that gross or anything, it is just that you don't want to be fiddling about with your dog's bum not really knowing what it is you're supposed to be accomplishing! It helps if the anal glands are full - if they aren't, you just think you're hopeless - if they are really full and hard, then you need to go at it a different way if you know what I mean .... You could always practise popping two jelly-beans out of a deflated balloon with one hand ...!!!
I have just re-read this, and I am so sorry because it doesn't seem to help at all !!!
Welcome to COL anyway!!!