chore: disable Matomo

pull/13/head
Nicolas Doby 2023-03-03 17:43:10 +01:00
parent c58ebadaf6
commit bb668cf356
1 changed files with 17 additions and 17 deletions

View File

@ -11,23 +11,23 @@
<link rel="alternate" href="/blog/feed/feed.xml" type="application/atom+xml" title="{{ metadata.title }}"> <link rel="alternate" href="/blog/feed/feed.xml" type="application/atom+xml" title="{{ metadata.title }}">
<link rel="alternate" href="/blog/feed/feed.json" type="application/json" title="{{ metadata.title }}"> <link rel="alternate" href="/blog/feed/feed.json" type="application/json" title="{{ metadata.title }}">
<link rel="icon" href="/blog_images/favicon.svg"> <link rel="icon" href="/blog_images/favicon.svg">
{% if "ELEVENTY_ENV" | env == "production"%} {# {% if "ELEVENTY_ENV" | env == "production"%}#}
<!-- Matomo --> {# <!-- Matomo -->#}
<script> {# <script>#}
var _paq = window._paq || []; {# var _paq = window._paq || [];#}
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ {# /* tracker methods like "setCustomDimension" should be called before "trackPageView" */#}
_paq.push(['trackPageView']); {# _paq.push(['trackPageView']);#}
_paq.push(['enableLinkTracking']); {# _paq.push(['enableLinkTracking']);#}
(function() { {# (function() {#}
var u="https://itsonus.matomo.cloud/"; {# var u="https://itsonus.matomo.cloud/";#}
_paq.push(['setTrackerUrl', u+'matomo.php']); {# _paq.push(['setTrackerUrl', u+'matomo.php']);#}
_paq.push(['setSiteId', '1']); {# _paq.push(['setSiteId', '1']);#}
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; {# var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];#}
g.async=true; g.src='//cdn.matomo.cloud/itsonus.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s); {# g.async=true; g.src='//cdn.matomo.cloud/itsonus.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);#}
})(); {# })();#}
</script> {# </script>#}
<!-- End Matomo Code --> {# <!-- End Matomo Code -->#}
{% endif %} {# {% endif %}#}
</head> </head>
<body class="container"> <body class="container">
<header class="main-header"> <header class="main-header">