Skip to content
Snippets Groups Projects
Verified Commit 06daccfe authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Kod pro matomo

parent 83006f2f
Branches
Tags
No related merge requests found
% if ( $c->config->{matomo_id} ) {
<!-- Matomo -->
<script type="text/javascript">
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.pirati.cz/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '<%= $c->config->{matomo_id} %>']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
% }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment