> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: telemetry

## Article: telemetry

## Article Link: https://dev.wix.com/docs/wix-cli/legacy-clis/astro-based-wix-cli-for-apps/command-reference/global-commands/telemetry.md

## Article Content:

# wix telemetry

<blockquote class="warning">

**Deprecated**

The Astro-based Wix CLI for Apps is deprecated. New projects should use the [Wix CLI for Apps](https://dev.wix.com/docs/wix-cli/cli-for-apps/about-the-wix-cli-for-apps.md).

- To find out which structure a project uses, see [Determine Which CLI Your Project Uses](https://dev.wix.com/docs/build-apps/develop-your-app/develop-an-app-with-the-cli/project-development/determine-which-cli-your-project-uses.md).
- To migrate an existing app to the new Wix CLI, see [Migrate an Astro-based CLI App to the New Wix CLI](https://dev.wix.com/docs/build-apps/develop-your-app/develop-an-app-with-the-cli/migrate-an-app-to-the-new-cli/migrate-an-app-from-the-astro-based-cli/migrate-an-astro-based-cli-app-to-the-new-wix-cli.md).

</blockquote>

Opts in or out of sending usage information and error reports (telemetry) to Wix.

## Usage

```bash
wix telemetry <state>
```

## States

The following states are available for the `wix telemetry` command:

- `on`: Opt in to sending usage information and error reports to Wix.
- `off`: Opt out of sending usage information and error reports to Wix.

The setting is saved in `.wix/user.config.json` in your home directory and applies to every Wix CLI project for your user account. Set it on each computer you work on. Telemetry is on by default.

## What telemetry includes

- Usage information: The command you ran, including its arguments and flag values, and whether it succeeded. API keys and refresh tokens are removed from flag values before sending. When you're logged in, events include your Wix user ID. When the command is tied to a site or an app, events include that site ID or app ID. Events also include environment details such as the CLI version, the Node.js version, the operating system, and whether the command ran in CI.
- Error reports: When a command fails unexpectedly, the CLI sends an error report to the Wix error-monitoring service. A report includes the error and its stack trace, the command that failed, and your Wix user ID when you're logged in. If the failure came from a Wix API call, the report includes a truncated copy of the request and response. Reports also include environment details such as whether the command ran in CI.

`wix telemetry off` turns off both types. Turning off error reports requires Wix CLI 1.1.258 or later.

## Turn off telemetry for a single run

Set the `DO_NOT_TRACK` environment variable to `1` to turn off all telemetry for that run, without changing your saved setting:

```bash
DO_NOT_TRACK=1 wix build
```

Use this variable in CI pipelines and in sandboxed environments, such as an AI coding agent's execution container, where outbound network requests are restricted or reviewed. With `DO_NOT_TRACK=1`, the CLI makes no telemetry or error-reporting requests, so you don't need to allow any telemetry destination. Only the exact value `1` turns telemetry off, per the [`DO_NOT_TRACK` standard](https://donottrack.sh); any other value leaves your saved setting in effect. The variable can only turn telemetry off. It never re-enables telemetry you turned off with `wix telemetry off`.