3rd party marketing and analytics cookies in add-ons

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 provide an event so you can use a listener for this and get consent in the runtime. DataLayer is updated in the runtime, right after users’ consent.

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

Post navigation