diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -15,15 +15,19 @@ class page { private $headCode = array(); private $trackingcode = ''; // Google analytics ga.js tracking code + var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); + document.write(unescape("%3Cscript src=’" + gaJsHost + "google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E")); + + '; // Google analytics ga.js tracking code private $pagetitle = ''; // Title of page private $scripts = array(); // Scripts to include on page