Have your dog lay in sphinx position – this is best achieved by using a small surface area with good traction for grip.
Once your dog is lying down, use a treat to bribe their head forward & backward, making note of the flexion achieved through the hips & stifles – this is a great technique for dogs who resist other stretches.