3rd party marketing and analytics cookies in add-ons

Dislaimer: this is a draft of the future implementation and might be subject to change. Now it’s just for informational purposes only.

From 1. 1. 2022 all marketing and analytics cookies must be approved by the user. A new cookie toolbar will be implemented according to the new legislation by that date. We are aware of a short time to implement all necessary functionality, but all addons must reflect users’ settings and collect data only if it’s granted.

To implement that, we provide information about cookie consent in dataLayer. These data are pushed into dataLayer when the page is rendered. Here are examples of possible states:
Default state – both marketing and analytics cookies denied

{
 'cookie_consent':{ 
   'marketing': 'denied',
   'analytics': 'denied'
  },
}

Cookie consent partly granted – only analytics tool can be used

{
 'cookie_consent':{ 
   'marketing': 'denied',
   'analytics': 'granted'
  },
}

Cookie consent granted

{
 'cookie_consent':{ 
   'marketing': 'granted',
   'analytics': 'granted'
  },
}

In case there is no cookie_consent object in the dataLayer Shoptet cookie bar is disabled.

We ask you to modify your addons in case you are using marketing or analytics cookies to use those types of cookies in case of consent only.

We’ll provide also an event so you can use a listener for this and get consent in the runtime. This will be announced soon. DataLayer will be also updated in the runtime, right after users’ consent.

dataLayer.push({
 'cookie_consent':{ 
   'marketing': 'granted',
   'analytics': 'granted'  
  },
 'event': 'cookie_consent' 
});

Post navigation