Sorry to see your doggy having all this trouble and you having to pay vet bills because of it.
Strongly suggest you be more proactive and get your dogs anal gland drained more frequently than you are.
We take Walley-Bubba to the groomers once every 6 weeks for this reason; to have his anal glands drained.
He also gets a bath and his nails clipped/buffed too.
For $30 he looks nice and smells even better and has not anal gland complications