Updated analytics tracking script