Cookie Consent

Asking for cookie consent is technically very challenging. The GDPR add-on offers a relatively simple solution.

The following section shows what happens when a visitor clicks on a button in the cookie bar.

When consent is given

  • It allows the Tracking Code to be run.
  • It stores a cookie named cookieconsent_status with the value allow for 1 year.
  • It sets a session named gdpr.cookies with the value true.
  • It hides the cookie bar and prevents it from loading in subsequent requests.
  • It reloades the page.

When consent is denied

  • It doesn't allow the Tracking Code to run.
  • It stores a cookie named cookieconsent_status with the value deny for 1 year.
  • It sets a session named gdpr.cookies with the value false.
  • It hides the cookie bar and prevents it from loading in subsequent requests.
  • It reloades the page.

When consent is dismissed

  • It doesn't prevent the Tracking Code to be run, unless 'Opt-out' is chosen.
  • It stores a cookie named cookieconsent_status with the value "dismiss" for 1 year.
  • It hides the cookie bar and prevents it from loading in subsequent requests.

Customization

  • The type of consent (opt-in, opt-out, notice).
  • The position (bottom, top, floating left, floating right).
  • A theme (rounded buttons, classic, or without edges).
  • The link to a privacy or read more page.
  • Colors: banner background, button background, banner text, button text.
  • Texts: banner text, dismiss, button text, read more link text, deny button text.

How to reset the cookie status?

You can create a button somewhere and give it the class gdpr-reset-cookie-consent. When clicked on it, it will automatically reset the cookie status (both in the browser as on the server).

Translation

You can use the built-in Translate Site Interface to translate texts. This includes custom texts you may have entered on the cookie consent page.