# Opt-Out from Tracking

To ensure user privacy is handled correctly, the Tracking SDK (v2) will opt out from tracking by default and tracking opt in must be enabled via the configuration to enable tracking like this:&#x20;

```
ce({trackingOptIn: true});
```

By default, the tracking SDK will be in a non-tracking mode. It will execute and run all its internal code logic and functions, but will not make any http request to the CrossEngage tracking API. This configuration will allow requests to the API when enabled, which is required for user tracking.\
When true, it will add a cookie to the users browser to store this setting and apply it on the next page load.

To set a opt-out cookie for a given user and stop the CrossEngage tracking library from sending API-request to the CrossEngage Web-tracking API, you can simply set to tracking opt-out to false:

```
ce({trackingOptIn: false});
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.crossengage.io/data-and-engagement-platform/web-tracking/web-tracking-v2/tracking-user-behavior/opt-out-from-tracking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
