I do the same thing that Ashley does.
Throw a few yummy (non pill infested) treats in the air then quickly throw the pill one then REALLY quickly throw another non pill treat. That's the only way to get Sierra to take pills.
With my parents dog, I used to take food and slice a little slit in it, push the pill in, then close the slit with peanut butter. (pancakes worked the Best!)

If Sierra hears a pill bottle, she won't eat ANY treat I give her! (smarty pants)

With Buddy, I just open the hatch and throw it down. He gets tranqs quite often and they are so small it's easy.
My husband thinks I'm nuts because he's watched me do it before and I pretend I'm the crock hunter when I'm opening his jaws! "By Crockie he's a beaut... look at those chompers"