Mercurial > hg > nginx-site
annotate xsls/ga.xsls @ 1241:2246339a6a93
Upstream: added IDs for "server" and "health_check" params.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 02 Jul 2014 21:19:50 +0400 |
parents | 10e622e0bfc8 |
children | f717975834cf |
rev | line source |
---|---|
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
543
diff
changeset
|
1 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
543
diff
changeset
|
2 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
543
diff
changeset
|
3 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
543
diff
changeset
|
4 |
543
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
5 X:stylesheet { |
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 X:template ga () { |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
8 |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
9 <script type="text/javascript"> |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
10 |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
11 var _gaq = _gaq || []; |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
12 _gaq.push(['_setAccount', 'UA-27974099-2']); |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
13 _gaq.push(['_setDomainName', 'nginx.org']); |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
14 _gaq.push(['_trackPageview']); |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
15 |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
16 (function() \{ |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
17 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
1213
10e622e0bfc8
Change google analytic code to enable display advertising features.
Sergey Budnevitch <sb@waeme.net>
parents:
580
diff
changeset
|
18 ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; |
543
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
19 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
|
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 </script> |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
23 |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
24 } |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
25 |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
26 } |