This module integrates Usercentrics Consent Management into Magento.
It covers both Usercentrics solutions, namely Usercentrics CMP as well as Cookiebot by Usercentrics.
Regardless the module allows enabling Google Consent Mode v2, so adding a JavaScript snippet to the page, that defines default consent settings, which are being read by Google Tag Manager.
...
Expand | ||
---|---|---|
| ||
The Domain Group ID can be found in Cookiebot Admin → Implementation (green highlight) |
Usercentrics CMP
If you use Usercentrics CMP, choose appropriate integration type and configure settings ID.
...
Expand | ||
---|---|---|
| ||
Settings ID can be found in Usercentrics Admin Panel, in the preview of your sites (green highlight) |
Preview mode
Usercentrics CMP supports the preview mode, to test settings before deploying changes, in order to see the preview mode status, change the configuration in the Magento Admin Panel, enabling it.
...
Code Block | ||
---|---|---|
| ||
<script data-defer-ignore="true" data-cookieconsent="ignore"> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag("consent", "default", { ad_personalization: "denied", ad_storage: "denied", ad_user_data: "denied", analytics_storage: "denied", functionality_storage: "denied", personalization_storage: "denied", security_storage: "granted", wait_for_update: 500, }); gtag("set", "ads_data_redaction", true); gtag("set", "url_passthrough", true); </script> |
Final note
This module only adds Usercentrics or Cookiebot integration to the page and default consent settings for Google Consent Mode v2. With these in place, one can start configuring Google Tag Manager, to apply proper consent settings.
...