Add Matomo tag in the proper location for Docsy (#577)

* Add Matomo tag to docsy head-end hook
diff --git a/landing-pages/site/config.toml b/landing-pages/site/config.toml
index 3bbb5d7..5fc4791 100644
--- a/landing-pages/site/config.toml
+++ b/landing-pages/site/config.toml
@@ -51,7 +51,7 @@
 [services]
 [services.googleAnalytics]
 # Comment out the next line to disable GA tracking. Also disables the feature described in [params.ui.feedback].
-id = "UA-XXXXXXXXX-X"
+# id = "UA-140539454-1"
 
 # Language configuration
 
diff --git a/landing-pages/site/layouts/partials/hooks/head-end.html b/landing-pages/site/layouts/partials/hooks/head-end.html
index 41924ed..c840423 100644
--- a/landing-pages/site/layouts/partials/hooks/head-end.html
+++ b/landing-pages/site/layouts/partials/hooks/head-end.html
@@ -29,6 +29,24 @@
     <link href="{{ $css.RelPermalink }}" rel="stylesheet" integrity="{{ $css.Data.integrity }}">
 {{ end }}
 
+<!-- Matomo -->
+<script>
+    var _paq = window._paq = window._paq || [];
+    /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+    /* We explicitly disable cookie tracking to avoid privacy issues */
+    _paq.push(['disableCookies']);
+    _paq.push(['trackPageView']);
+    _paq.push(['enableLinkTracking']);
+    (function() {
+        var u="https://analytics.apache.org/";
+        _paq.push(['setTrackerUrl', u+'matomo.php']);
+        _paq.push(['setSiteId', '13']);
+        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);
+    })();
+</script>
+<!-- End Matomo Code -->
+
 {{ with .Site.Data.webpack }}
 <link rel="preload" href="{{ relURL .main.js }}" as="script">
 <link rel="preload" href="{{ relURL .header.js }}" as="script">