Cookie Wall Settings

This document describes your options when it comes to how cookies affect the tracking of your website by Crobox.


There are two available options when it comes to Cookie Wall Settings: Explicit Opt-in: In this case there will be no tracking cookies by default, unless an explicit call back is used. Explicit Opt-out: In this case users will be tracked by default, unless there is an explicit call back to not track.

Limitations of the Explicit Opt-in Setting

When a user has not opted-in for Crobox (or cookies) only the product finder will work. Events are not collected and dynamic messaging campaigns will not be shown. When a user does not opt-in or opt-out no Crobox cookie (_crbx) will be set. Additionally, if A/B testing is setup for a product finder, users who do not opt-in will not be included in the test.

Opt-in Javascript Code

const crobox = window.crobox || [];
crobox.push(crobox => crobox.optIn());

This sets the _crbx cookie to a random uuid.

Opt-out Javascript Code

const crobox = window.crobox || [];
crobox.push(crobox => crobox.optOut());

This sets the _crbx cookie to value dnt which will indicate the user has explicitly opted-out and does not want to be tracked.

It is only needed to call these methods once (for example when visitors are accepting cookies, or denying them), so there is no need to call them every time the page loads; the Crobox snippet will ignore the call when it already has the same preference. When the opt-in or opt-out is changed it will update the settings accordingly.

Implementation Steps

Once you decide whether the default for your website will be opt-in or opt-out, contact your Customer Success Manager, so that our team can update the settings for your Crobox container. Then, you will need to take the following steps to implement on your side:

  1. Make sure that the Crobox snippet is loading before your website's cookie wall

  2. Depending on your decision:

    • For opt-in, implement the above opt-in code when a user clicks to accept cookies

    • For opt-out, implement the above opt-out code when a user clicks to reject cookies

Last updated