This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 459965f19 docs: set up Matomo for website analytics (#4176)
459965f19 is described below
commit 459965f194ce18d2f7f5b37236db83c785752fe6
Author: Bryce Mecum <[email protected]>
AuthorDate: Thu Apr 2 17:25:07 2026 -0700
docs: set up Matomo for website analytics (#4176)
This PR sets up Matomo analytics for the ADBC docs sub-website (/adbc)
using the same approach and site ID as Arrow used to set up theirs:
https://github.com/apache/arrow/issues/31788.
I tested this PR locally by building the docs site and confirming my
change injects the `script` tag in the `head` tag of pages.
---
docs/source/_templates/base.html | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/docs/source/_templates/base.html b/docs/source/_templates/base.html
index 8bbbd46a6..bd0feca66 100644
--- a/docs/source/_templates/base.html
+++ b/docs/source/_templates/base.html
@@ -70,6 +70,24 @@
font-weight: bold;
}
</style>
+
+<!-- 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', '20']);
+ 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 -->
{% endblock %}
{# Inject skeleton of version switcher #}