feat: add analytics

pull/1/head
Nicolas Doby 2022-11-14 09:38:29 +01:00
parent d283d0ccf3
commit 54d679dcbe
1 changed files with 17 additions and 0 deletions

View File

@ -11,6 +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"%}
<!-- Matomo -->
<script>
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://itsonus.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
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);
})();
</script>
<!-- End Matomo Code -->
{% endif %}
</head> </head>
<body class="container"> <body class="container">
<header class="main-header"> <header class="main-header">