mirror of
https://github.com/jimeh/heartb.it.git
synced 2026-02-19 12:56:47 +00:00
updated google analytics code
This commit is contained in:
@@ -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); })();
|
||||
'''
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user