google analytics and refactor head info into partial