Mercurial > hg > nginx-site
comparison xsls/ga.xsls @ 543:9085f0c59dc6
Google Analytics tracking script added to all pages
author | Sergey Budnevitch <sb@waeme.net> |
---|---|
date | Wed, 20 Jun 2012 13:46:28 +0000 |
parents | |
children | be54c443235a |
comparison
equal
deleted
inserted
replaced
542:a9e6a8613534 | 543:9085f0c59dc6 |
---|---|
1 X:stylesheet { | |
2 | |
3 X:template ga () { | |
4 | |
5 <script type="text/javascript"> | |
6 | |
7 var _gaq = _gaq || []; | |
8 _gaq.push(['_setAccount', 'UA-27974099-2']); | |
9 _gaq.push(['_setDomainName', 'nginx.org']); | |
10 _gaq.push(['_trackPageview']); | |
11 | |
12 (function() \{ | |
13 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
14 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
15 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
16 \})(); | |
17 | |
18 </script> | |
19 | |
20 } | |
21 | |
22 } |