You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stormcrawler.apache.org by rz...@apache.org on 2024/04/25 07:40:24 UTC
(incubator-stormcrawler-site) 01/01: Fixes #8 "Add Matomo Tracking"
This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch 8
in repository https://gitbox.apache.org/repos/asf/incubator-stormcrawler-site.git
commit 72ff7a4ac1570a28a08ae58426f046225ba146b7
Author: Richard Zowalla <rz...@apache.org>
AuthorDate: Thu Apr 25 09:40:10 2024 +0200
Fixes #8 "Add Matomo Tracking"
---
_layouts/default.html | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/_layouts/default.html b/_layouts/default.html
index 82b0e91..d312dbf 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -15,4 +15,21 @@
</body>
+ <!-- Matomo -->
+ <script>
+ 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', '58']);
+ 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 -->
</html>