The very best way I have ever seen it done is to lick the tip of your index finger (before putting it in the dog's mouth) and touch the pill with the wet finger. The pill sticks to the finger and can be placed far back in the dog's mouth.
Now with food-loving dogs, like our labs, wrapping in cheese, ham, peanut butter, bread or anything edible is pretty easy. If I take a bite of whatever I am wrapping the pill in before giving the pill to the dog, all thoughts of eating around the pill fly out the window...