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

Add the ability to disable event tracking #13226

Open
mhemmings opened this issue Jul 15, 2024 · 1 comment
Open

Add the ability to disable event tracking #13226

mhemmings opened this issue Jul 15, 2024 · 1 comment

Comments

@mhemmings
Copy link

Motivation

Mapbox GL JS sends analytics data to events.mapbox.com. However, the domain is blocked by a number of ad and privacy blocklists. We see that the majority of our end-users are blocking this domain and therefore all event tracking with ad block lists, privacy-first browsers such as Brave browsers, or other tools such as PiHole.

I understand that Mapbox tries to anonymise tracking data but the ability to disable all requests is the best route for privacy focused users, who will just have the requests being blocked in the background anyway (Ad-blocker usage is around 37% worldwide)

The mobile SDKs already allow telemetry to be disabled, and the ToS explicitly state this must be an option provided to the user.

Design/Concepts/etc

Add a telemetryDisabled?: boolean or similar option to the Mapbox instantiation, which disables requests to events.mapbox.com.

This is a simple API, and allows Mapbox GL JS to work as currently implemented unless the developer actively disables telemetry. This may be a developer choice, or they could offload this choice to the user. The design also closely matches that for the Android and iOS SDKs.

Note: The above works on the assumption that "map.load" events aren't used for billing (this sort of control should never be left to the frontend environments). If it is, there are much bigger issues here due to the large number of events in the real world that would be blocked, and also the ease for users or developers to actively disable this without Mapbox ever knowing.

@timotheeduran
Copy link

Hi! Do we have any news on this? @stepankuzmin. I think this is really great input from @mhemmings.

At the very least, could we have a way to disable this in a development environment? This floods the console logs and makes it hard to see real errors.

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

No branches or pull requests

3 participants