Mercurial > hg > nginx-site
annotate xsls/ga.xsls @ 1546:8ea1813272bb
Documented the tcp_nodelay directive for stream.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 11 Aug 2015 18:26:37 +0300 |
parents | 8b26399868ed |
children |
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 |
1282
f717975834cf
Replace google analytics with google tag manager.
Sergey Budnevitch <sb@waeme.net>
parents:
1213
diff
changeset
|
9 <script> |
f717975834cf
Replace google analytics with google tag manager.
Sergey Budnevitch <sb@waeme.net>
parents:
1213
diff
changeset
|
10 (function(w, d, s, l, i) \{ |
f717975834cf
Replace google analytics with google tag manager.
Sergey Budnevitch <sb@waeme.net>
parents:
1213
diff
changeset
|
11 w[l] = w[l] || []; |
f717975834cf
Replace google analytics with google tag manager.
Sergey Budnevitch <sb@waeme.net>
parents:
1213
diff
changeset
|
12 w[l].push(\{ |
f717975834cf
Replace google analytics with google tag manager.
Sergey Budnevitch <sb@waeme.net>
parents:
1213
diff
changeset
|
13 'gtm.start': new Date().getTime(), |
f717975834cf
Replace google analytics with google tag manager.
Sergey Budnevitch <sb@waeme.net>
parents:
1213
diff
changeset
|
14 event: 'gtm.js' |
f717975834cf
Replace google analytics with google tag manager.
Sergey Budnevitch <sb@waeme.net>
parents:
1213
diff
changeset
|
15 \}); |
f717975834cf
Replace google analytics with google tag manager.
Sergey Budnevitch <sb@waeme.net>
parents:
1213
diff
changeset
|
16 var f = d.getElementsByTagName(s)[0], |
f717975834cf
Replace google analytics with google tag manager.
Sergey Budnevitch <sb@waeme.net>
parents:
1213
diff
changeset
|
17 j = d.createElement(s), |
f717975834cf
Replace google analytics with google tag manager.
Sergey Budnevitch <sb@waeme.net>
parents:
1213
diff
changeset
|
18 dl = l != 'dataLayer' ? '&l=' + l : ''; |
f717975834cf
Replace google analytics with google tag manager.
Sergey Budnevitch <sb@waeme.net>
parents:
1213
diff
changeset
|
19 j.async = true; |
f717975834cf
Replace google analytics with google tag manager.
Sergey Budnevitch <sb@waeme.net>
parents:
1213
diff
changeset
|
20 j.src = '//www.googletagmanager.com/gtm.js?id=' + i + dl; |
f717975834cf
Replace google analytics with google tag manager.
Sergey Budnevitch <sb@waeme.net>
parents:
1213
diff
changeset
|
21 f.parentNode.insertBefore(j, f); |
1287
8b26399868ed
Replaced nginx.com GTM code with nginx.org one.
Sergey Budnevitch <sb@waeme.net>
parents:
1282
diff
changeset
|
22 \})(window, document, 'script', 'dataLayer', 'GTM-TPSP33'); |
543
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
23 </script> |
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 |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
diff
changeset
|
27 } |