adds analytics tracking