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