updated google analytics code

This commit is contained in:
2011-12-24 19:16:54 +00:00
parent 315f7e13ff
commit 82f3ae2760
2 changed files with 2 additions and 7 deletions

View File

@@ -1,6 +1,3 @@
script '''
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 '''
try {var pageTracker = _gat._getTracker("UA-354018-12");pageTracker._trackPageview();} catch(err) {}
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-354018-12']); _gaq.push(['_trackPageview']); (function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
'''

View File

@@ -2,10 +2,8 @@ doctype 5
html ->
head ->
meta charset: 'utf-8'
title 'heartb.it'
link rel: 'stylesheet', href: 'css/style.css'
partial 'ga'
body ->
@body
partial 'ga'