sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.12k stars 1.29k forks source link

Disabling surveys and analytics #8107

Open ghost opened 4 years ago

ghost commented 4 years ago

We would like to completely disable surveys and analytics to minimize the data that is stored for users. I'm not seeing configuration options for that. If that's currently not possible, how do you feel about adding such settings?

dadlerj commented 4 years ago

Hey @aeb-sia ! Sorry, but this isn't (entirely) possible in the existing product today.

You can disable the survey prompts/pop-ups from appearing by setting htmlBodyBottom in the site configuration:

{
...
  "htmlBodyBottom": "<script>localStorage.setItem('has-dismissed-survey-toast', true);</script>",
...
}

However, if a user browses to sourcegraph.example.com/survey, they will still be able to submit it.

As for analytics, you cannot disable that entirely inside the product today — it is necessary for ensuring license compliance. Specific, user-level information is only retained inside of your Sourcegraph instance, though (so you can always delete it all by deleting the mounted data volume).

Just to understand, what is the need/goal here?

ghost commented 4 years ago

Not collecting personal data that we don't need. Specifically the number of page views/queries and code intelligence actions.