pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

[New Website] Set up Matomo (an alternative to Google Analytics)

Open Anonymitaet opened this issue 2 years ago • 3 comments

Comments from @dave2wave:

Google Analytics are no longer allowed on ASF websites due to privacy concerns. See https://privacy.apache.org/policies/website-policy.html

This is a new policy. The privacy committee has setup an alternative Matomo service - https://privacy.apache.org/matomo/

🔹🔹🔹🔹🔹🔹

Comments from @Anonymitaet:

Currently, Pulsar is using Google Universal Analytics. Google Universal Analytics will no longer process new data in standard properties beginning July 1, 2023. Organizations that use Google Universal Analytics need to switch over to a Google Analytics 4 property.

If we make a consensus on migrating from Google Universal Analytics to Matomoto, we do not need to do that switchover.

Since GA is much more powerful than Matomo, may we keep both GA and Matomo for now? GA will expire next year, we'll only use Matomo them.

Anonymitaet avatar May 19 '22 08:05 Anonymitaet

@Anonymitaet

  1. How does Google Analytics 4 property fix the PII issues with GA? Nothing on that link you provided indicates any improvements.
  2. Here is what Google has about GDPR - https://support.google.com/analytics/answer/6366371?hl=en#zippy=%2Cin-this-article
  3. The ASF has taken several years to address GDPR and this issue should be fully decided by the Foundation in one month. This is being done to protect the Foundation. This will become a hard policy of the ASF - No Google Analytics.

dave2wave avatar May 19 '22 13:05 dave2wave

The issue had no activity for 30 days, mark with Stale label.

github-actions[bot] avatar Jun 19 '22 02:06 github-actions[bot]

I'm going to send an email to [email protected], asking for a site ID and integrating the website with the Matomo service.

In the first place, we keep the Google Analytics settings until it's forcibly forbidden by the ASF or we're confident that the Matomo solution has completed replace.

tisonkun avatar Nov 01 '22 16:11 tisonkun

Here is the code snippet provided by privacy@:

<!-- 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', '32']);
    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 -->

To integrate with Docusaurus platform, I already made an example here. I'm gonna submit a pull request later when I have some spare time, but you can also follow my example and prepare a patch :)

tisonkun avatar Nov 07 '22 08:11 tisonkun

FYI @urfreespace

tisonkun avatar Nov 07 '22 08:11 tisonkun