How to stop an anxious dog from compulsive licking

A dog who licks compulsively may have skin allergies