diff options
author | 2009-02-10 14:13:02 +0000 | |
---|---|---|
committer | 2009-02-10 14:13:02 +0000 | |
commit | f8f0b34afa9c2232f12efccbdbd4091317e738a8 (patch) | |
tree | 11412438339324fde7c742537eacdcdb370d7f1e /templates | |
parent | 834b3aedb86bf5a7f76e01646201c495a9da8faf (diff) | |
download | scuttle-f8f0b34afa9c2232f12efccbdbd4091317e738a8.tar.gz scuttle-f8f0b34afa9c2232f12efccbdbd4091317e738a8.zip |
New Feature: add Google Analytics Code in config file [Config file modified: googleAnalyticsCode]
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@267 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates')
-rw-r--r-- | templates/bottom.inc.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/bottom.inc.php b/templates/bottom.inc.php index 4ad9618..9fb2306 100644 --- a/templates/bottom.inc.php +++ b/templates/bottom.inc.php @@ -12,5 +12,20 @@ if($GLOBALS['enableWebsiteThumbnails']) { </div> + +<?php if(isset($GLOBALS['googleAnalyticsCode']) && $GLOBALS['googleAnalyticsCode']!= ''):?> + +<script type="text/javascript"> +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")); +</script> +<script type="text/javascript"> +try { +var pageTracker = _gat._getTracker("<?php echo $GLOBALS['googleAnalyticsCode']?>"); +pageTracker._trackPageview(); +} catch(err) {}</script> + +<?php endif;?> + </body> </html> |