Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated the google tracker

  • Loading branch information...
commit 7d89ff68587cfd91a6022719430e02da4db941ed 1 parent 6ca8edd
@petdance authored
Showing with 13 additions and 7 deletions.
  1. +13 −7 tt/footer.tt
View
20 tt/footer.tt
@@ -1,11 +1,17 @@
<div id="footer">
</div>
<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"));
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-631706-2']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script');
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
+ 'http://www') + '.google-analytics.com/ga.js';
+ ga.setAttribute('async', 'true');
+ document.documentElement.firstChild.appendChild(ga);
+ })();
+
</script>
-<script type="text/javascript">
-try {
- var pageTracker = _gat._getTracker("UA-631706-2");
- pageTracker._trackPageview();
-} catch(err) {}</script>
Please sign in to comment.
Something went wrong with that request. Please try again.