This is an automated email from the ASF dual-hosted git repository.
zhangzhe pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fesod.git
The following commit(s) were added to refs/heads/main by this push:
new 775fe437 feat: add Matomo analytics tracking script (#626)
775fe437 is described below
commit 775fe437e30ae7944f0d2e3fae97eec7a46e5dd4
Author: DeleiGuo <[email protected]>
AuthorDate: Wed Oct 1 21:38:39 2025 +0800
feat: add Matomo analytics tracking script (#626)
---
website/docusaurus.config.js | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index acdd438d..af1fbeba 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -200,6 +200,29 @@ const config = {
}
}),
themes: ['@docusaurus/theme-mermaid'],
+ headTags: [
+ {
+ tagName: 'script',
+ attributes: {
+ type: 'text/javascript',
+ },
+ 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', '83']);
+ 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);
+ })();
+ `,
+ },
+ ],
markdown: {
format: 'md',
mermaid: true,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]