base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / ng / nginx-doc / exclude-google-analytics.patch
blobc2f3f520c3d10a2d7061fbffda6e9f9646c523a9
1 Kill google analytics from local documentation.
3 diff -r bb0a2fbdc886 xslt/ga.xslt
4 --- a/xslt/ga.xslt Mon Apr 06 11:17:11 2020 +0100
5 +++ b/xslt/ga.xslt Thu Apr 09 10:29:02 2020 -0400
6 @@ -6,23 +6,6 @@
7 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
9 <xsl:template name="ga">
11 - <script>
12 - (function(w, d, s, l, i) {
13 - w[l] = w[l] || [];
14 - w[l].push({
15 - 'gtm.start': new Date().getTime(),
16 - event: 'gtm.js'
17 - });
18 - var f = d.getElementsByTagName(s)[0],
19 - j = d.createElement(s),
20 - dl = l != 'dataLayer' ? '&amp;l=' + l : '';
21 - j.async = true;
22 - j.src = '//www.googletagmanager.com/gtm.js?id=' + i + dl;
23 - f.parentNode.insertBefore(j, f);
24 - })(window, document, 'script', 'dataLayer', 'GTM-TPSP33');
25 - </script>
27 </xsl:template>
29 </xsl:stylesheet>