summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-06-16 11:49:48 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-06-16 11:49:48 +0200
commitbe33e0170dbee0888aab1fe1b72b81041cb69849 (patch)
tree4c0424b756043703a1a7c3de1cfb0357b84a4f93 /web
parent36750aeafdc8dac7ad09d6f5ead029821ff1861e (diff)
downloadhakyll-be33e0170dbee0888aab1fe1b72b81041cb69849.tar.gz
Fix google analytics code
Diffstat (limited to 'web')
-rw-r--r--web/templates/default.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/templates/default.html b/web/templates/default.html
index 78845e5..efceb69 100644
--- a/web/templates/default.html
+++ b/web/templates/default.html
@@ -58,12 +58,12 @@
<!-- Google Analytics -->
<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 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("UA-11993001-1");
+ var pageTracker = _gat._getTracker('UA-11993001-1');
pageTracker._trackPageview();
} catch(err) {}
</script>