Adding analytics tracking