Tension or Temperature.
Dogs may shake as a way of relieving tension.
If a dog is feeling nervous or uncomfortable in a situation, it might shake the whole body as a way of shaking out tension.
This behavior also may function as a means of getting attention from other Dogs or people.