Foreign bodies in the ear canal commonly cause head shaking and scratching of the ear. Ear infections can also cause head shaking. Your dog needs to be examined by a veterinarian. They will look down her ear canal to verify if a fox tail is present. Usually foxtails are removed under sedation. An ear cytology should also be run to screen for ear mites and an ear infection (yeast or bacteria).
Do not try to remove the foxtail at home--you will likely do significant damage to the ear, the ear canal, and/or the ear drum.
Do not try to remove the foxtail at home--you will likely do significant damage to the ear, the ear canal, and/or the ear drum.