matomo tracking on website

This commit is contained in:
Sebastian Frank 2019-02-21 18:10:05 +01:00
parent bd3d04b061
commit 0aefb5c758
Signed by: apairon
GPG Key ID: 7270D06DDA7FE8C3
2 changed files with 26 additions and 16 deletions
website/templates

@ -13,10 +13,9 @@
<meta name="description" content="{{ Meta.Description }}" />
<meta name="keywords" content="{{ Meta.Keywords }}" />
<link rel="stylesheet" type="text/css" href="project-files/css/preloader.css">
{% include "partials/matomo.html" with siteId=89 %}
</head>
<body>
@ -33,14 +32,12 @@
<span class="text">Menu</span>
</a>
</div>
</header>
<!-- ========== Slider ========== -->
<section class="slider white_arrows" data-dots="true" data-arrows="true">
</section>
<!-- ========== Navigation ========== -->
<div class="navholder" id="nav">
<div class="container">
@ -60,7 +57,6 @@
</li>
{% endfor %}
</ul>
</nav>
</div>
</div>
@ -96,12 +92,10 @@
</p>
<a href="{{ nav.GoTo }}" class="btn">mehr lesen »</a>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
@ -142,7 +136,6 @@
</section>
<!-- ========== SCROLL TOP ========== -->
<div class="scrolltop">
<i class="fa fa-angle-up" aria-hidden="true"></i>

@ -0,0 +1,17 @@
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setCookieDomain", "*.mark2web.de"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://www.basisstats.de/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '{{ siteId|default:0 }}']);
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>
<noscript><p><img src="https://www.basisstats.de/matomo.php?idsite=89&amp;rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->