---
title: Send the user's decisions about data collection - Web
description: Track whether users accept data collection
lastUpdated: 09 May 2025
source_url:
  html: https://docs.contentsquare.com/en/web/send-the-users-decisions-about-data-collection/
  md: https://docs.contentsquare.com/en/web/send-the-users-decisions-about-data-collection/index.md
---

## Users who refuse data collection

In order to have a cookie attesting that the user completely refuse data collection (no pageviews, no transactions will be sent), you need to execute the following code:

```html
<script type="text/javascript">
  window._uxa = window._uxa || [];
  window._uxa.push(["optout"]);
</script>
```

We do recommend for you to add this to your privacy policy page:

```html
Contentsquare is a solution which provides the website owner with digital visitor behavior analytics
in order to enhance visitor experience. To be excluded from the collection of data by Contentsquare
on this website, <a href="javascript:window._uxa.push(['optout']);">click here</a>.
```

On the current domain, this command will add a `_cs_optout` cookie and remove all the other Contentsquare cookies already there.

**Command by URL** — If the opt-out mechanism is handled by a third-party tool such as Evidon, you can use a link to the targeted domain including `_cs_optout` in the query parameters or in the anchor. On the page, the tag will execute the same code as above to exclude the user from tracking and add the opt-out cookie.

* `www.mydomain.com/?_cs_optout`
* `www.mydomain.com/#_cs_optout`
