Compare commits

..

2 Commits

2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,5 @@
# Add CSP header # Deactivate CSP header
more_set_headers "Content-Security-Policy: default-src 'self'; img-src 'self' https://matomo.{{top_domain}}; script-src 'self' 'unsafe-inline' https://matomo.{{top_domain}};"; more_set_headers "Content-Security-Policy: ";
# sub filters to integrate matomo tracking code in nginx websites # sub filters to integrate matomo tracking code in nginx websites
sub_filter '</head>' '<script>{{matomo_tracking_code_one_liner}}</script></head>'; sub_filter '</head>' '<script>{{matomo_tracking_code_one_liner}}</script></head>';

View File

@ -1,4 +1,5 @@
var _paq = window._paq = window._paq || []; var _paq = window._paq = window._paq || [];
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.{{base_domain}}"]); _paq.push(["setCookieDomain", "*.{{base_domain}}"]);
_paq.push(["setDomains", ["*.{{base_domain}}"]]); _paq.push(["setDomains", ["*.{{base_domain}}"]]);
_paq.push(["enableCrossDomainLinking"]); _paq.push(["enableCrossDomainLinking"]);
@ -11,4 +12,4 @@ _paq.push(["enableLinkTracking"]);
_paq.push(["setSiteId", "{{matomo_site_id}}"]); _paq.push(["setSiteId", "{{matomo_site_id}}"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0];
g.async=true; g.src=u+"matomo.js"; s.parentNode.insertBefore(g,s); g.async=true; g.src=u+"matomo.js"; s.parentNode.insertBefore(g,s);
})(); })();