How to enable Google Consent Mode v2
Integrate Google Consent Mode v2 with Icegram Cookie Manager to preserve analytics and ad measurement under privacy regulations.
Google Consent Mode v2 allows your website to adjust how Google tags (including Google Analytics 4, Google Ads, and Floodlight) behave based on visitor consent choices.
When enabled in Icegram Cookie Manager, the plugin communicates visitor consent choices directly to Google tags. If a visitor denies consent, Google tags automatically operate in cookieless ping mode to preserve aggregated modeling without storing personal tracking cookies.
How consent types map to cookie categories
The plugin maps Google’s four Consent Mode v2 parameters to its built-in consent categories:
| Google Consent Parameter | Plugin Category | Default State | Updated State on Consent |
|---|---|---|---|
analytics_storage | Analytics & Performance | denied | granted when visitor accepts Analytics |
ad_storage | Marketing | denied | granted when visitor accepts Marketing |
ad_user_data | Marketing | denied | granted when visitor accepts Marketing |
ad_personalization | Marketing | denied | granted when visitor accepts Marketing |
Enabling Google Consent Mode v2
-
In your WordPress admin dashboard, go to Cookie Manager > Cookie Manager.
-
Scroll down to the Advanced section.
-
Find the Google Consent Mode v2 option and check the box to enable it.
-
Click Save Settings.
Verifying your consent setup
You can confirm that Google Consent Mode v2 is operating properly using your web browser:
-
Open an incognito browser window and navigate to your website.
-
Open browser Developer Tools (press
F12or right-click and select Inspect), then click the Console tab. -
Type
dataLayerand pressEnter. -
Expand the printed array objects. You should see an entry for
['consent', 'default', {...}]with all four consent parameters set todenied. -
Click Accept All on the cookie banner.
-
Inspect
dataLayeragain. A new['consent', 'update', {...}]call should appear, indicating that the parameters have switched togranted.