--- a/theme/templates/base.html Thu Nov 10 18:52:14 2022 +0100 +++ b/theme/templates/base.html Thu Nov 10 19:15:24 2022 +0100 @@ -35,20 +35,8 @@ {% if TAG_FEED_RSS and tag %} <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_RSS_URL %}{{ TAG_FEED_RSS_URL|format(tag.slug) }}{% else %}{{ TAG_FEED_RSS|format(tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" /> {% endif %} - {% if MATOMO_JS %} -<script> - var _paq = window._paq = window._paq || []; - /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ - _paq.push(['trackPageView']); - _paq.push(['enableLinkTracking']); - (function() { - var u="//matomo.sdfa3.org/"; - _paq.push(['setTrackerUrl', u+'matomo.php']); - _paq.push(['setSiteId', '2']); - 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); - })(); -</script> + {% if MATOMO_JS%} + {{MATOMO_JS}} {% endif %} {% if article %} {% if article.stylesheets %} @@ -146,9 +134,8 @@ </div> {% include 'trademark.html' %} </div> - {% if MATOMO_IMG %} - <img referrerpolicy="no-referrer-when-downgrade" src="https://matomo.sdfa3.org/matomo.php?idsite=2&rec=1" style="border:0" alt="" /> + {{MATOMO_IMG}} {% endif %} </body>