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'); +