Adds analytics tracking