diff --git a/institut/templates/base.html b/institut/templates/base.html index 625982ce68f11d213b585a2856e78cefbdab885e..3de5d28771d234cb2aa81d83812a7f58e11e2a28 100644 --- a/institut/templates/base.html +++ b/institut/templates/base.html @@ -158,5 +158,21 @@ </div> {% block extra_js %}{% endblock %} + + <!-- Matomo --> + <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.pii.cz/"; + _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> + <!-- End Matomo Code --> </body> </html>