Google Consent V2
This tab configures the cookie consent popup of your shop and how it reports visitor choices to Google Consent Mode v2, or connects an external consent manager instead.
How consent works in the extension
The generated GTM workspace follows Google Consent Mode v2. Each tag sends data only when the visitor has granted the consent type it needs. The shop is responsible for asking the visitor and publishing the answer. You have three ways to do that:
- The built-in popup. The extension shows its own consent popup and stores the answer. This is the usual choice.
- An external consent manager. If you already use cookie-script.com or Cookiebot, enable its compatibility switch and leave the built-in popup disabled.
- No consent management. With the popup and both compatibility switches disabled, the shop does not ask the visitor and does not restrict the tags. Use this only where the law does not require consent.
The built-in popup offers four categories. Each one controls these Google consent types:
| Category in the popup | Google consent types |
|---|---|
| Necessary | security_storage |
| Preferences | functionality_storage, personalization_storage |
| Statistics | analytics_storage |
| Marketing | ad_storage, ad_user_data, ad_personalization |
Until a visitor answers, the optional categories are denied. The answer is stored in cookies for 365 days. Every time the visitor answers or changes the selection, the shop publishes the event googleConsentUpdate and the tags adapt.
The consent state is also saved with each order. The Orders tab shows it in the COOKIES MARKETING column. See Orders and conversions.
Compatibilities
| Setting | What it does |
|---|---|
| cookie-script.com | Enable it if your consent banner comes from cookie-script.com. The extension loads its script in the storefront. |
| CDN URL | The script address of your cookie-script.com banner. In cookie-script.com go to Settings > Installation > Google Tag Manager and copy the CDN URL. |
| Cookiebot compatibility | Enable it if your consent banner comes from Cookiebot. The extension then treats optional consent that has not been given as denied. |
Do not enable a compatibility switch and the built-in popup at the same time. Your visitors would see two banners.
Consent popup general configuration
| Setting | What it does |
|---|---|
| Status | Enables the built-in consent popup in the storefront. |
| Acceptance with page change | If the visitor ignores the popup and opens another page, all cookies are accepted automatically. |
| Acceptance with scroll | If the visitor ignores the popup and scrolls, all cookies are accepted automatically. |
| Consent popup position | Center, Top left, Top right, Bottom full width, Bottom left or Bottom right. |
| Lock screen | Blocks the page until the visitor interacts with the popup. |
| Popup Delay Time | Time in milliseconds to wait before showing the popup after the page loads. Default: 1000. |
Consent popup texts
These fields have one value per language of your shop. Fill in every language.
| Setting | Default text |
|---|---|
| Title | This site uses cookies. |
| Description | A short explanation of why the shop uses cookies. |
| Link "more information" title | More information |
| Link "more information" page | The information page of your shop that the link opens, normally your cookie or privacy policy. |
| "Accept all" button text | Accept all |
| "Accept selection" button text | Accept selection |
| "Customize" button text | Customize |
| "Refuse all" button text | Refuse all |
| Necessary Checkbox label and Necessary explanation | Necessary, with a text about security storage. |
| Preferences Checkbox label and Preferences explanation | Preferences, with a text about storage for site functions such as language. |
| Statistics Checkbox label and Statistics explanation | Statistics, with a text about analytics storage. |
| Marketing Checkbox label and Marketing explanation | Marketing, with a text about advertising storage. |
The "Customize" button opens the list of categories so the visitor can select them one by one and confirm with "Accept selection".
Consent popup appearance
Each field opens a colour picker.
| Setting | What it colours |
|---|---|
| Main theme color | Top border, link, the "Accept all" button and other accents. |
| Consent popup background | Background of the popup. |
| Consent popup text | Text of the popup. |
| Button "Accept all" text | Text of the "Accept all" button. |
| Button "Accept selection" background and Button "Accept selection" text | The "Accept selection" button. |
| Button "Customize" background and Button "Customize" text | The "Customize" button. |
| Button "Refuse all" background and Button "Refuse all" text | The "Refuse all" button. |
| Checkbox color of "Necessary" category | Checkbox of the Necessary category. |
| Checkbox color of "Preferences" category | Checkbox of the Preferences category. |
| Checkbox color of "Statistics" category | Checkbox of the Statistics category. |
| Checkbox color of "Marketing" category | Checkbox of the Marketing category. |
Floating configuration button general settings
After answering, visitors must be able to change their mind. The floating button reopens the popup.
| Setting | What it does |
|---|---|
| Position | No button, Top left, Top right, Bottom left or Bottom right. |
| Configure cookies button title | Text shown for the button. Default: Cookies configuration. One value per language. |
| Icon "cookie" color | Colour of the cookie icon. |
If you prefer a link in your footer or cookie policy instead of the floating button, choose No button and add a link whose address is #GMTCookiesSettings. Any link with that address opens the consent popup:
<a href="#GMTCookiesSettings">Cookie settings</a>Custom code
Custom code
Code added to the storefront. Use it for CSS changes to the popup or other adjustments. Leave it empty if you do not need it.
To keep a record of each choice, enable Enable Cookie Consent Logging in the GDPR tab. To test the popup, see Google Tag Manager.
Still need help?
Open a support ticket from your account and our team will look at your store with you.