matomo tracking on website
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sebastian Frank
2019-02-21 18:10:05 +01:00
parent bd3d04b061
commit 0aefb5c758
2 changed files with 26 additions and 16 deletions

View File

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

View File

@@ -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 -->