Skip to content
Snippets Groups Projects
Commit c1917acc authored by jan.bednarik's avatar jan.bednarik
Browse files

Add matomo tracking code

parent af89ae2c
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,21 @@ ...@@ -2,6 +2,21 @@
<html {{ HTML_ATTRS }}> <html {{ HTML_ATTRS }}>
<head> <head>
{{ HEAD }} {{ HEAD }}
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//matomo.pirati.cz/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '111']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</head> </head>
<body {{ BODY_ATTRS }}> <body {{ BODY_ATTRS }}>
{{ APP }} {{ APP }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment