Why This Matters
Google Analytics (GA4) is the pulse of any startup. But GA4 tracks Client IDs and IP addresses — both Personal Data under DPDP. If you track users without a banner, your data is "poisoned" — illegally collected and could be struck down in an audit.
Step-by-Step Implementation
- 1. Install ConsentLite — Add the lightweight script to your
<head>. - 2. Configure Consent Mode — Set the default state to
deniedforanalytics_storageandad_storage. - 3. Modify GTM Triggers — Replace "All Pages" with "Consent Initialization" or a custom
consent_updateevent. - 4. Test in Preview Mode — Use GTM's Debug mode to verify no Google tags fire before "Accept" is clicked.
The Most Common Mistake
"Leakage" — the banner appears, but the Google Analytics script is already running in the background. ConsentLite's auto-blocking feature prevents exactly this.
Fix Your Tracking Setup
Before regulators do — get seamless GA4 + DPDP integration with ConsentLite.
Get ConsentLite for GA4 →Frequently Asked Questions
Will GA4 still work if users reject cookies?
Yes — Consent Mode v2 sends 'cookieless pings' so you still get aggregated, modeled data.
Do I need GTM to make this work?
GTM makes consent triggers easier, but you can also gate gtag() calls in code.
Will my GA4 numbers drop after this?
You may see fewer 'tracked' users, but the data you do collect will be 100% legal and high-quality.