added analytics tracking