Implemented correct loading order

This commit is contained in:
2025-02-07 17:25:53 +01:00
parent 38e031da13
commit 93d2a862c4
6 changed files with 22 additions and 17 deletions

View File

@@ -2,5 +2,4 @@
add_header Content-Security-Policy: "";
# sub filters to integrate matomo tracking code in nginx websites
sub_filter '</head>' '<script>{{matomo_tracking_code_one_liner}}</script></head>';
sub_filter '</body>' '<noscript><p><img src="//matomo.{{primary_domain}}/matomo.php?idsite={{matomo_site_id}}&rec=1" style="border:0;" alt="" /></p></noscript></body>';

View File

@@ -0,0 +1 @@
<script>{{matomo_tracking_code_one_liner}}</script>