Just like humans, dogs can get allergy. Common types of allergies that can cause your dog shaking head include flea, contact and atopy (environmental allergies such as pollen). Typical symptoms would be itching, chewing, scratching, etc. And when the affected area is on your dog's head, he may shake vigorously to get rid of it.