adding analytics tracking
moved analytics to bottom