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

Document event tracking + opt-out #399

Closed
atharvai opened this issue Apr 26, 2017 · 7 comments
Closed

Document event tracking + opt-out #399

atharvai opened this issue Apr 26, 2017 · 7 comments
Assignees
Labels
user docs [docs.getdbt.com] Needs better documentation

Comments

@atharvai
Copy link

Currently DBT sends tracking events to fishtown-analytics' snowplow instance. How can we disable this tracking?

sample log:
Sending event: {'category': 'dbt', 'action': 'run_model', 'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x00000000078A01D0>]....}

@drewbanin
Copy link
Contributor

Hey @atharvai -- great question! This used to be documented, but I can't seem to find it over on Read The Docs.

You can disable anonymous event tracking by adding these lines to your ~/.dbt/profiles.yml file.

config:
    send_anonymous_usage_stats: False

You can find more info about this here

I'll make sure to update the docs with this information. Thanks!

@drewbanin drewbanin changed the title How to disable event tracking? Document event tracking + opt-out Apr 26, 2017
@drewbanin drewbanin added 0.8.1 Release user docs [docs.getdbt.com] Needs better documentation labels Apr 26, 2017
@drewbanin drewbanin self-assigned this Apr 26, 2017
@drewbanin
Copy link
Contributor

@atharvai FYI, we're moving our docs over to readme.io. Check out the updated usage statistics info here

@userbradley
Copy link

@drewbanin the page comes back as blank on both chrome and safari
image

Also can we please make this more well known as we don't exactly want to be sending back usage data when we dont even know what it's sending. Doesn't feel right, epsecially on internal instances

@TColl

@jtcohen6
Copy link
Contributor

@userbradley Sorry about that, the links above are from several years ago. You can see updated docs here: https://docs.getdbt.com/reference/global-configs#send-anonymous-usage-stats

You can also see all the tracking code in this file: https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/tracking.py

@userbradley
Copy link

Thanks @joevandyk

@polmonso
Copy link

The documentation page doesn't mention how to turn the anonymous data usage off. Is still adding the snippet

config:
    send_anonymous_usage_stats: False
some_dbt_project:
    ...

to the .dbt/profiles.yml the way to do it?

@dbeatty10
Copy link
Contributor

@polmonso Here's the docs:
https://docs.getdbt.com/reference/global-configs/usage-stats

👍 Yep, adding the following within your profiles.yml is the way to go:

config:
  send_anonymous_usage_stats: False

Then after you run your next dbt command, you can check your logs at logs/dbt.log. You should be able to find something like this to show that it worked:

'send_anonymous_usage_stats': False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user docs [docs.getdbt.com] Needs better documentation
Projects
None yet
Development

No branches or pull requests

6 participants