aboutsummaryrefslogtreecommitdiff
path: root/templates/bottom.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/bottom.inc.php')
-rw-r--r--templates/bottom.inc.php15
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>