I-implement ang Google Consent Mode V2 Step by Step — Ang Definitive Tutorial
Ano ang Google Consent Mode V2
Ang Consent Mode V2 ay isang Google API na nag-a-adjust ng behavior ng Google tags base sa consent status. Ang tags ay maaaring mag-load sa restricted, cookieless state. Ginawa itong mandatory ng Google para sa EEA advertisers noong Marso 2024.
Kung wala: conversion modelling tumitigil, remarketing audiences lumiliit, Smart Bidding bumababa.
Ang Apat na Consent Parameters
- ad_storage — Advertising cookies
- analytics_storage — Analytics cookies
- ad_user_data — User data para sa advertising (bago sa V2)
- ad_personalization — Remarketing (bago sa V2)
Basic vs Advanced Mode
Basic: Hindi naglo-load ang tags hangga't walang consent. Advanced: Naglo-load agad sa restricted mode. Ginagamit ng Google ang pings para sa modelling, nire-recover hanggang 70%. Palaging gamitin ang Advanced.
Step 1: I-set ang Default Consent State
Ilagay bago ang Google tags sa <head>:
gtag('consent', 'default', { 'ad_storage': 'denied', 'analytics_storage': 'denied', 'ad_user_data': 'denied', 'ad_personalization': 'denied', 'wait_for_update': 500 });
Step 2: I-update ang Consent
gtag('consent', 'update', { 'ad_storage': 'granted', ... });
Step 3: GTM Implementation
I-enable ang Consent Overview sa GTM. Gumawa ng Consent Initialization tag. I-configure ang Consent Settings.
Step 4: I-verify
- Tag Assistant: Consent tab
- dataLayer: consent default at update
- GA4 DebugView: Consent indicators
Conversion Modelling
Sa Advanced mode, ang pings ay nagfo-feed sa models. Requirement: 1,000+ clicks/day sa 7 araw. Nire-recover ang 50-70%.
Karaniwang Pagkakamali
- Default snippet naglo-load pagkatapos ng Google tags
- Nawawalang ad_user_data o ad_personalization
- wait_for_update sa 0
- Consent update nagfi-fire nang walang kondisyon
Laktawan ang Complexity gamit FlexyConsent
Inaayos ng FlexyConsent ang lahat: default denied, update commands, apat na parameters, TCF 2.3, Microsoft UET — mula sa isang script tag. Plans mula EUR 0/buwan.