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

[🐛 Bug]: Cannot opt out of telemetry, please don't enable it by default without user consent #14643

Open
alithechemist opened this issue Oct 24, 2024 · 4 comments

Comments

@alithechemist
Copy link

What happened?

I can't find a way of avoiding sending telemetry.

export SE_AVOID_STATS just does not work.

I also believe that it is not the best to enable telemetry by default and then let users disable as long as they find out...

It should be the other way around: If the user wants, they can opt-in.

I'm not entirely sure this is ok in EU.

How can we reproduce the issue?

## Testcase

export SE_AVOID_STATS; python main.py
trying proxy:xxx.xxx.xxx.xxx:4145

Error sending stats to Plausible: error sending request for url (https://plausible.io/api/event)

Relevant log output

Error sending stats to Plausible: error sending request for url (https://plausible.io/api/event)

Operating System

Debian

Selenium version

python 4.25.0

What are the browser(s) and version(s) where you see this issue?

Firefox 115.16.1esr

What are the browser driver(s) and version(s) where you see this issue?

geckodriver0.35.0

Are you using Selenium Grid?

No response

Copy link

@alithechemist, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@alithechemist
Copy link
Author

I just saw my mistake: it should be:

export SE_AVOID_STATS=true; python main.py

and not

export SE_AVOID_STATS; python main.py

My request about requiring user consent in order to collect data remains anyway.

@joerg1985
Copy link
Member

@diemol why not changing the --selenium-manager=true CLI switch to e.g. --selenium-manager analytics_agreed and --selenium-manager no_analytics? The same logic could be used for the RemoteWebdriverBuilder, this will ensure a user does explicit give his consent or not to analytics. I know it should default to true in Selenium 5, this can not be done in this case.
I think adding propper documentation and a hint inside the exceptions should lead people to use the selenium-manager.

Another option might be to change the client API to enforce in setting the (dis)agreement and send it to the server inside a se:manager capability, defaulting to no_analytics (in case someone is using outdated client libs). The --selenium-manager flag could still be used to enable / disable the selenium manager feature on the server in general. In this case the --selenium-manager flag could default to true in Selenium 5.

@alithechemist
Copy link
Author

Honestly:

  1. It happened that i saw the error about not being able to reach plausible.io DESPITE i set the environmental variable SE_AVOID_STATS=true;
  2. It is faster to put plausible in the hosts file with 0.0.0.0 ... honestly...

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

2 participants