diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-06-16 11:49:48 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-06-16 11:49:48 +0200 |
commit | be33e0170dbee0888aab1fe1b72b81041cb69849 (patch) | |
tree | 4c0424b756043703a1a7c3de1cfb0357b84a4f93 /web | |
parent | 36750aeafdc8dac7ad09d6f5ead029821ff1861e (diff) | |
download | hakyll-be33e0170dbee0888aab1fe1b72b81041cb69849.tar.gz |
Fix google analytics code
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/default.html | 6 |
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> |