mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-24 05:31:04 +01:00
Compare commits
No commits in common. "4b008750dd79bcdec034a0a05db39f7d0a225549" and "dc11daf43d76f3543d21a646ae5564ff5a884a3c" have entirely different histories.
4b008750dd
...
dc11daf43d
@ -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>';
|
||||
|
@ -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);
|
||||
})();
|
||||
})();
|
Loading…
Reference in New Issue
Block a user