Send the users' decisions about data collection
Implement user consent by running the opt-out command to prevent Contentsquare data collection for users who decline tracking.
Users who refuse data collection
Section titled Users who refuse data collectionTo 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:
<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:
Contentsquare is a solution which provides the website owner with digital visitor behavior analyticsto enhance visitor experience. To be excluded from the collection of data by Contentsquareon 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_optoutwww.mydomain.com/#_cs_optout