Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Google Analytics from Dubbo Website #3087

Closed
niallkp opened this issue Jan 20, 2025 · 3 comments
Closed

Remove Google Analytics from Dubbo Website #3087

niallkp opened this issue Jan 20, 2025 · 3 comments

Comments

@niallkp
Copy link
Contributor

niallkp commented Jan 20, 2025

Hi Dubbo Team

The ASF Privacy Policy[1][2] does not permit the use of Google or Baidu Analytics on any ASF websites and the ASF Infra team will soon enforce a Content Security Policy(CSP) that will block access to external trackers:

Please could you remove the use of the Google Analytics from the Dubbo website (I will submit a PR request shortly to do that)?

The ASF hosts its own Matomo instance to provide projects with analytics. It appears that Dubbo already has a Matomo Tracking ID, although I don't see any request for that to privacy AT apache.org.

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

Additionally I would recommend reviewing any external resources loaded by your website. The Content Security Policy will prevent any resources being loaded from 3rd Party providers that the ASF does not have a Data Processing Agreement (DPA) with. On the 1st February Infra will begin a temporary "brownout" when the CSP will be turned on for a short period. This will allow projects to check which parts, if any, of their websites will stop working. The Privacy FAQ answers a number of questions about which external providers are permitted or not:

Thanks

Niall

[1] https://privacy.apache.org/policies/website-policy.html
[2] https://privacy.apache.org/faq/committers.html#can-i-use-google-analytics

@niallkp
Copy link
Contributor Author

niallkp commented Jan 29, 2025

Thank you for applying the PR - much appreciated. However, when I scan the asf-site-v2 branch in the dubbo-website repository for Google Analytics I get the following results:

Searching for: googletagmanager.com, Found 701 occurrence(s) in 701 file(s)
Searching for: google-analytics.com, Found 1728 occurrence(s) in 1728 file(s)

It looks like you're website has been re-organized at least a couple of times and there are old files which are no longer being re-generated. For example, the following folders (which contain 3390 files and 1667 of them contain "google-analytics.com")

  • blog
  • cn
  • community
  • docs
  • docs3-v2
  • dubbo-go
  • en-cn
  • en-us
  • overview
  • zh

I will provide a PR which deletes the files that contain Google Analytics , but looks like there are alot more old file (around 6000+)

@AlbumenJ
Copy link
Member

AlbumenJ commented Feb 8, 2025

I wonder if it is possible to remove Google Analytics only. These files may impact Search SEO.

@niallkp
Copy link
Contributor Author

niallkp commented Feb 8, 2025

@AlbumenJ I have created a PR #3100 that removes Google Analytics from those old pages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants