Skip to content

Commit

Permalink
Merge pull request #22 from jr-cologne/matomo-tracking-update
Browse files Browse the repository at this point in the history
Enable Matomo HeartBeatTimer
  • Loading branch information
jr-cologne authored Sep 24, 2018
2 parents 732f3dd + b50a1e5 commit b6cc02d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
21 changes: 2 additions & 19 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,8 @@

<link type="text/css" href="/_app/assets/css/{{ include.stylesheet }}.css" rel="stylesheet">

<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.jr-cologne.de"]);
_paq.push(["setDomains", ["*.jr-cologne.de"]]);
_paq.push(["setDoNotTrack", true]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//jr-cologne.de/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
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+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
<!-- Matomo -->
{% include matomo.html %}

<!-- Cookie Consent plugin by Insites - https://cookieconsent.insites.com/ -->
<link rel="stylesheet" href="/node_modules/cookieconsent/build/cookieconsent.min.css">
Expand Down
17 changes: 17 additions & 0 deletions _includes/matomo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.jr-cologne.de"]);
_paq.push(["setDomains", ["*.jr-cologne.de"]]);
_paq.push(["setDoNotTrack", true]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
_paq.push(['enableHeartBeatTimer']);
(function() {
var u="//jr-cologne.de/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
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+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>

0 comments on commit b6cc02d

Please sign in to comment.