---
title: Send the users' decisions about data collection - Web
description: Track whether users accept data collection
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
---

> ## Documentation index
> Fetch the complete documentation index at: https://docs.contentsquare.com/llms.txt
> Use this file to discover all available pages before exploring further.

Implement user consent by running the opt-out command to prevent Contentsquare data collection for users who decline tracking.

## Users who refuse data collection

To have a cookie attesting that the user completely refuse data collection (no pageviews, no transactions will be sent), you need to run 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
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 run 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`


```json
{"@context":"https://schema.org","@type":"TechArticle","headline":"Send the users' decisions about data collection","description":"Track whether users accept data collection","url":"https://docs.contentsquare.com/en/web/send-the-users-decisions-about-data-collection/","inLanguage":"en","dateModified":"2026-04-07T14:16:48+02:00","publisher":{"@type":"Organization","name":"Contentsquare","url":"https://www.contentsquare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://docs.contentsquare.com/#website","name":"Contentsquare Technical Documentation","url":"https://docs.contentsquare.com/"}}
```