added analytics and tracking sitewide
fixed bug in analytics implementation