Skip to content
OpenCart · User manual

Google Marketing Tools

Version 13.25.0 Product page
Chapter 8

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 popupGoogle consent types
Necessarysecurity_storage
Preferencesfunctionality_storage, personalization_storage
Statisticsanalytics_storage
Marketingad_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

SettingWhat it does
cookie-script.comEnable it if your consent banner comes from cookie-script.com. The extension loads its script in the storefront.
CDN URLThe 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 compatibilityEnable 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

SettingWhat it does
StatusEnables the built-in consent popup in the storefront.
Acceptance with page changeIf the visitor ignores the popup and opens another page, all cookies are accepted automatically.
Acceptance with scrollIf the visitor ignores the popup and scrolls, all cookies are accepted automatically.
Consent popup positionCenter, Top left, Top right, Bottom full width, Bottom left or Bottom right.
Lock screenBlocks the page until the visitor interacts with the popup.
Popup Delay TimeTime 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.

SettingDefault text
TitleThis site uses cookies.
DescriptionA short explanation of why the shop uses cookies.
Link "more information" titleMore information
Link "more information" pageThe information page of your shop that the link opens, normally your cookie or privacy policy.
"Accept all" button textAccept all
"Accept selection" button textAccept selection
"Customize" button textCustomize
"Refuse all" button textRefuse all
Necessary Checkbox label and Necessary explanationNecessary, with a text about security storage.
Preferences Checkbox label and Preferences explanationPreferences, with a text about storage for site functions such as language.
Statistics Checkbox label and Statistics explanationStatistics, with a text about analytics storage.
Marketing Checkbox label and Marketing explanationMarketing, 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.

SettingWhat it colours
Main theme colorTop border, link, the "Accept all" button and other accents.
Consent popup backgroundBackground of the popup.
Consent popup textText of the popup.
Button "Accept all" textText of the "Accept all" button.
Button "Accept selection" background and Button "Accept selection" textThe "Accept selection" button.
Button "Customize" background and Button "Customize" textThe "Customize" button.
Button "Refuse all" background and Button "Refuse all" textThe "Refuse all" button.
Checkbox color of "Necessary" categoryCheckbox of the Necessary category.
Checkbox color of "Preferences" categoryCheckbox of the Preferences category.
Checkbox color of "Statistics" categoryCheckbox of the Statistics category.
Checkbox color of "Marketing" categoryCheckbox 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.

SettingWhat it does
PositionNo button, Top left, Top right, Bottom left or Bottom right.
Configure cookies button titleText shown for the button. Default: Cookies configuration. One value per language.
Icon "cookie" colorColour 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.