Mercurial > hg > nginx-site
annotate xslt/ga.xslt @ 2060:237b67ef69a6
Improved win32 build instructions.
Added "--with-openssl-opt=no-asm" argument which is required since
OpenSSL 1.0.2, as OpenSSL started to use assembler by default in 1.0.0 and
then broke builds with MASM in OpenSSL 1.0.2 (ticket #1396).
While here, added "--with-debug", added missing "--http-scgi-temp-path" and
"--http-uwsgi-temp-path", updated OpenSSL to 1.0.2l, switched to slightly
more readable one-argument-per-line style in configure example, added
indentation to continuation lines, removed useless "--builddir=objs" argument
("objs" is the default), and removed useless "-f objs/Makefile" argument
in nmake (nginx generates appropriate Makefile in the current directory).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 17 Oct 2017 17:57:36 +0300 |
parents | 716618f57bac |
children |
rev | line source |
---|---|
544 | 1 <?xml version="1.0" encoding="utf-8"?> |
1085 | 2 <!-- |
3 Copyright (C) Nginx, Inc. | |
4 --> | |
5 | |
544 | 6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
7 | |
1085 | 8 <xsl:template name="ga"> |
544 | 9 |
1283 | 10 <script> |
11 (function(w, d, s, l, i) { | |
12 w[l] = w[l] || []; | |
13 w[l].push({ | |
14 'gtm.start': new Date().getTime(), | |
15 event: 'gtm.js' | |
16 }); | |
17 var f = d.getElementsByTagName(s)[0], | |
18 j = d.createElement(s), | |
19 dl = l != 'dataLayer' ? '&l=' + l : ''; | |
20 j.async = true; | |
21 j.src = '//www.googletagmanager.com/gtm.js?id=' + i + dl; | |
22 f.parentNode.insertBefore(j, f); | |
1288 | 23 })(window, document, 'script', 'dataLayer', 'GTM-TPSP33'); |
544 | 24 </script> |
1085 | 25 |
26 </xsl:template> | |
544 | 27 |
28 </xsl:stylesheet> |