|
2 | 2 | <script async src="https://www.googletagmanager.com/gtag/js?id={{this}}"></script>
|
3 | 3 | <script>function gtag(){dataLayer.push(arguments)};window.dataLayer=window.dataLayer||[];gtag('js',new Date());gtag('config','{{this}}')</script>
|
4 | 4 | {{/with}}
|
| 5 | + {{#with site.keys.enableTracking}} |
| 6 | + <script type="text/javascript"> var tCPrivacyTagManager = "gtm"; </script> |
| 7 | + <script> |
| 8 | + var consent = document.createElement("script"); |
| 9 | + if(window.location.pathname.indexOf("/en/") > -1){ |
| 10 | + // Default is EN Cookie Banner if /en/ in path |
| 11 | + consent.src = "https://cdn.trustcommander.net/privacy/4616/privacy_v2_27.js"; |
| 12 | + } else { |
| 13 | + // Default is DE Cookie Banner |
| 14 | + consent.src = "https://cdn.trustcommander.net/privacy/4616/privacy_v2_9.js"; |
| 15 | + } |
| 16 | + consent.type = "text/javascript"; |
| 17 | + document.head.appendChild(consent); |
| 18 | + </script> |
| 19 | + <!-- Matomo consent with trustcommander --> |
| 20 | + <script type="text/tc_privacy" data-category="2"> |
| 21 | + console.log('consent provided for Matomo') |
| 22 | + <!-- Matomo --> |
| 23 | + var _paq = window._paq = window._paq || []; |
| 24 | + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ |
| 25 | + _paq.push(["setDocumentTitle", document.domain + "/" + document.title]); |
| 26 | + _paq.push(["setCookieDomain", "*.stackable.tech"]); |
| 27 | + _paq.push(["setDomains", ["*.stackable.tech"]]); |
| 28 | + _paq.push(['trackPageView']); |
| 29 | + _paq.push(['enableLinkTracking']); |
| 30 | + (function() { |
| 31 | + var u="https://stackable.matomo.cloud/"; |
| 32 | + _paq.push(['setTrackerUrl', u+'matomo.php']); |
| 33 | + _paq.push(['setSiteId', '2']); |
| 34 | + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; |
| 35 | + g.async=true; g.src='//cdn.matomo.cloud/stackable.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s); |
| 36 | + })(); |
| 37 | + </script> |
| 38 | + <!-- End Matomo Code --> |
| 39 | + {{/with}} |
5 | 40 | <script>var uiRootPath = '{{{uiRootPath}}}'</script>
|
0 commit comments