Page.footerData ViewHelper <f:page.footerData>
ViewHelper to add various content before the closing body-tag of the current page using PageRenderer.
<f:page.footerData>
<script>
var _paq = window._paq = window._paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u = "https://your-matomo-domain.example.com/";
_paq.push(['setTrackerUrl', u + 'matomo.php']);
_paq.push(['setSiteId', '1']);
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>
</f:page.footerData>
Copied!
Go to the source code of this ViewHelper: Page\FooterDataViewHelper.php (GitHub).