[Improve] Add matomo integration for website analytics (#336)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index d5ebe2c..8586eea 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -28,6 +28,30 @@
},
},
},
+ headTags: [
+ {
+ tagName: 'script',
+ attributes: {
+ type: 'text/javascript',
+ },
+ <!-- Matomo -->
+ innerHTML: `
+ var _paq = window._paq = window._paq || [];
+ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+ _paq.push(["setDoNotTrack", true]);
+ _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', '65']);
+ 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);
+ })();
+ `,
+ },
+ ],
presets: [
[
"classic",
@@ -197,7 +221,6 @@
},
footer: {
- style: "light",
links: [
{
title: "SeaTunnel",