From 89103993a3dedc4b121f326692fa9c884fbf0dca Mon Sep 17 00:00:00 2001 From: Set Sakrecoer Date: Tue, 4 May 2021 23:46:54 +0200 Subject: [PATCH] add mautic tracker --- _includes/cookie-consent.html | 1 + _includes/mautic-tracker.js | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 _includes/mautic-tracker.js diff --git a/_includes/cookie-consent.html b/_includes/cookie-consent.html index bb2b1f2..16a7a68 100644 --- a/_includes/cookie-consent.html +++ b/_includes/cookie-consent.html @@ -37,6 +37,7 @@ if (readCookie('cookie-notice-dismissed') == 'wantCookies') { {% include analytics.js %} + {% include mautic-tracker.js %} } else { document.getElementById('cookie-notice').style.display = 'flex'; diff --git a/_includes/mautic-tracker.js b/_includes/mautic-tracker.js new file mode 100644 index 0000000..ab1aec1 --- /dev/null +++ b/_includes/mautic-tracker.js @@ -0,0 +1,8 @@ + + (function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n; + w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t), + m=d.getElementsByTagName(t)[0];a.async=1;a.src=u;m.parentNode.insertBefore(a,m) + })(window,document,'script','https://pr.basspistol.com/mtc.js','mt'); + + mt('send', 'pageview'); +