From c44549981e9fd06e1dbbd48889409f5913c3b2b3 Mon Sep 17 00:00:00 2001 From: Robert Davey Date: Wed, 7 Aug 2024 15:50:44 +0100 Subject: [PATCH] Update matomo tracking code to Carpentries self-hosted --- _includes/head | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_includes/head b/_includes/head index 96a15db82..418a22a79 100644 --- a/_includes/head +++ b/_includes/head @@ -32,14 +32,14 @@ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { - var u="https://carpentries.matomo.cloud/"; - _paq.push(['setTrackerUrl', u+'matomo.php']); - _paq.push(['setSiteId', '10']); - var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; - g.async=true; g.src='//cdn.matomo.cloud/carpentries.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s); + var u="https://matomo.carpentries.org/"; + _paq.push(['setTrackerUrl', u+'matomo.php']); + _paq.push(['setSiteId', '10']); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); - + {% if site.google_site_verification %}{% endif %}