Mercurial > hg > nginx-site
view xslt/ga.xslt @ 1659:680cbf783efe
Fixed some misuses of "value".
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 29 Feb 2016 14:40:15 +0300 |
parents | 716618f57bac |
children |
line wrap: on
line source
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) Nginx, Inc. --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template name="ga"> <script> (function(w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = '//www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-TPSP33'); </script> </xsl:template> </xsl:stylesheet>