Skip to content
OpenCart · User manual

Google Consent V2

Version 1.0.1 Product page
Chapter 7

How consent works

What your visitors see, what each answer does and what the extension stores in their browser.

What the visitor sees

On a first visit, the popup appears about one second after the page loads, in the position you chose. It shows the title, the description, the "more information" link and three buttons: Accept all, Customize and Refuse all (with the texts you wrote).

  • Accept all grants every category.
  • Refuse all refuses every category except Necessary.
  • Customize opens the list of the four categories with their explanations and a switch for each. Necessary is always on and cannot be switched off. The visitor switches the other categories on or off and presses Accept selection.

After any of these answers, the popup closes and does not appear again on the following pages. If you chose a position for the floating button, the cookie icon appears in that corner; clicking it opens the popup again with the current choice, so the visitor can change it.

The popup is shown in the language the visitor is browsing in, with the texts of that language.

When the visitor does not answer

By default, a visitor who ignores the popup keeps every category except Necessary refused, and the popup appears again on the next page.

Two settings change this:

  • Acceptance with page change: if the visitor goes to another page without answering, all categories are granted.
  • Acceptance with scroll: if the visitor scrolls down the page without answering, all categories are granted.

With Lock screen on, the visitor cannot use the page until they answer.

What each category controls

Each category grants or refuses one or more consent types of Google Consent Mode V2:

CategoryConsent typesTypical use
Necessarysecurity_storageAlways granted.
Preferencesfunctionality_storage, personalization_storageRemembering choices such as language.
Statisticsanalytics_storageGoogle Analytics.
Marketingad_storage, ad_user_data, ad_personalizationGoogle Ads and remarketing.

Your Google tags read these consent types through Google Tag Manager. See Google Tag Manager setup.

What is stored in the visitor's browser

The answer is saved in first-party cookies of your shop, valid for 365 days:

CookieContent
acceptedGoogleConsentYes once the visitor has answered.
security_storage, functionality_storage, personalization_storage, analytics_storage, ad_storage, ad_user_data, ad_personalizationgranted or denied, one cookie per consent type.

Before the visitor answers, the consent type cookies are created as denied, except security_storage, which is granted. When the visitor answers, the cookies are updated and the event googleConsentUpdate is sent to Google Tag Manager with the new values.

The visitor's choice stays in their browser. Nothing is saved in your OpenCart database, so the choice is not linked to a customer account and does not follow the visitor to another browser or device.

Asking every visitor again

The popup appears again for a visitor when the cookie acceptedGoogleConsent expires or is deleted. There is no setting to reset the consent of all visitors at once.

Still need help?

Open a support ticket from your account and our team will look at your store with you.