Compare commits

..

No commits in common. "4b008750dd79bcdec034a0a05db39f7d0a225549" and "dc11daf43d76f3543d21a646ae5564ff5a884a3c" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,6 @@
# Deactivate CSP header
more_set_headers "Content-Security-Policy: ";
# Add 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}};";
# sub filters to integrate matomo tracking code in nginx websites
sub_filter '</head>' '<script>{{matomo_tracking_code_one_liner}}</script></head>';

View File

@ -1,5 +1,4 @@
var _paq = window._paq = window._paq || [];
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.{{base_domain}}"]);
_paq.push(["setDomains", ["*.{{base_domain}}"]]);
_paq.push(["enableCrossDomainLinking"]);
@ -12,4 +11,4 @@ _paq.push(["enableLinkTracking"]);
_paq.push(["setSiteId", "{{matomo_site_id}}"]);
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);
})();
})();