add analytics tracking code to main