Google Consent Mode & Tag Manager
Consent-state mapping
CookieWP sends Google consent defaults and updates through gtag. Statistics maps to analytics_storage. Marketing maps to ad_storage, ad_user_data and ad_personalization. Other maps to functionality_storage and personalization_storage. security_storage is granted.
Without a valid saved choice, optional states begin denied. The integration enables ads data redaction and disables URL passthrough.
Basic block-before-load behavior
This build uses a basic block-before-load approach for recognized optional Google scripts. Do not assume advanced-mode cookieless pings or Google certification. CookieWP is not a Google-certified CMP and does not provide a certified GTM consent template.
Google Tag Manager
A general GTM container waits until all three optional categories are allowed. CookieWP cannot safely infer every tag inside a container. Recognized GA4 G- and Google Ads AW- gtag URLs are classified separately.
For finer control, explicitly integrate category-specific tags and verify the complete container configuration. Avoid installing a second copy of the container outside the consent gate.
Verification
Test a fresh visit, Statistics only, Marketing only, all optional categories and withdrawal. Check both the consent state and actual network requests. A granted state by itself does not prove that the intended tag loaded, and a displayed banner does not prove that unrelated tags are blocked.