diff --git a/docs/api-reference/telemetry.md b/docs/api-reference/telemetry.md new file mode 100644 index 00000000000..f7e25b7a557 --- /dev/null +++ b/docs/api-reference/telemetry.md @@ -0,0 +1,30 @@ +# Telemetry + +Reflex collects anonymized usage statistics — counts of components and built-in features used at compile time, along with versions of Reflex, Python, and the host OS — so we can prioritize bug fixes and guide the future direction of the framework. We do **not** collect the contents of your source files, state, or any data your app handles at runtime. + +For full details, see our [Privacy Policy](https://build.reflex.dev/privacy-policy) and [Terms of Service](https://build.reflex.dev/terms-of-use). + +If you log in to [Reflex Cloud](/docs/hosting/deploy-quick-start/), your Cloud account identifier is associated with subsequent usage events from that machine. + +## Opt out + +In your `rxconfig.py`: + +```python +import reflex as rx + +config = rx.Config( + app_name="my_app", + telemetry_enabled=False, +) +``` + +Or via environment variable: + +```bash +REFLEX_TELEMETRY_ENABLED=false reflex init --template blank +``` + +The environment variable is the only supported opt-out method for reflex +commands executed outside the context of an app directory, such as `reflex +login` and `reflex init`. diff --git a/docs/app/reflex_docs/templates/docpage/sidebar/sidebar_items/reference.py b/docs/app/reflex_docs/templates/docpage/sidebar/sidebar_items/reference.py index f61ba8e3576..62ced3ff040 100644 --- a/docs/app/reflex_docs/templates/docpage/sidebar/sidebar_items/reference.py +++ b/docs/app/reflex_docs/templates/docpage/sidebar/sidebar_items/reference.py @@ -17,6 +17,7 @@ def get_sidebar_items_api_reference(): api_reference.browser_javascript, api_reference.plugins, api_reference.utils, + api_reference.telemetry, ], ) ]