added analytics tracking to head