Tiếng Việt English

Google Consent Mode v2: What Does Your Cookie Banner Tell Google Analytics?

Many websites show a cookie banner, yet the Google Analytics or Google Ads tags still fire as the page loads, before the visitor clicks "Accept". Then the banner is decoration. Consent Mode v2 is the standard way to make the banner actually control Google's tags.

This article is for information only and is not legal advice. Check the primary text, or ask a lawyer about your specific case.

Why this matters legally

Article 9 of the Personal Data Protection Law No. 91/2025/QH15 requires consent to be clear and specific, and says silence is not consent (clause 4 d). If analytics scripts already read identifiers and behaviour before the visitor chooses, their choice arrives too late. Check your site's default state: until consent, tags should be restricted.

What is Consent Mode v2?

It is a mechanism for your site to tell Google tags what the visitor has agreed to. Version 2 has four signals:

Each is either granted or denied. The right pattern has two steps: (1) set the default to denied before the Google tags load; (2) when the visitor chooses, update to granted for what they accepted.

Only for sites selling into the EU?

Google requires Consent Mode v2 for ads aimed at users in the European Economic Area. A site serving only Vietnamese visitors is not required by Google to use it. It is still a tidy way to show the banner has real effect: restricted by default, opened only on consent.

Test your site in 3 minutes

  1. Open the site in a private window, then DevTools → Application → Cookies.
  2. Before clicking anything: is there a _ga or _fbp cookie? If so, tags ran before consent.
  3. Click "Reject" and reload: do measurement cookies still appear?
  4. Click "Accept": cookies should appear only from this point.

How Widget.vn helps

Widget.vn's free cookie banner ships with Consent Mode v2: it sets the default to denied, updates the signals when the visitor chooses, and lets them reopen the choice to withdraw consent. You paste one script tag, placed before your Google tag so the default applies before it fires. It helps you configure this correctly; it does not make a site compliant on its own — you still need a privacy policy and sound data-handling processes.

Sources: Personal Data Protection Law No. 91/2025/QH15 (Article 9); Google Tag Platform documentation on Consent Mode.