DPDP guide · updated 2026-12-05
A DPDP consent banner that actually blocks trackers
Most Indian websites show a cookie notice but still load Google Analytics and Meta Pixel the moment the page opens. Under the DPDP Act, consent must be a clear affirmative action given before the processing starts.
What the law asks for
- Consent must be free, specific, informed, unconditional and unambiguous, by clear affirmative action (s.6(1)).
- The request must be in plain language and available in English or a language of the Eighth Schedule (s.6(3)).
- Withdrawal must be as easy as giving consent (s.6(4)).
- You must be able to prove consent was given and on which notice (s.6(10)).
What a compliant banner does
- Shows Accept all and Reject all with equal weight, plus per-purpose choices.
- Keeps tracker scripts inert until the visitor agrees — not just hides the banner.
- Leaves a 'Privacy choices' button on every page to change or withdraw consent.
- Records each choice with time, notice version and purposes.
How the DPDP Doctor fixes it
- Adds a bilingual (English + Hindi) consent manager first in your page head.
- Converts Google Analytics, Tag Manager, Meta Pixel, Clarity, Hotjar, TikTok and LinkedIn tags so they wait for consent.
- Sets Google Consent Mode to denied by default, and keeps your existing gtag() and fbq() calls working.
- Stores consent records on your own server (PHP, Express, Flask, FastAPI) or in the ODG hosted ledger.
Check your own site in minutes
Upload your code or connect GitHub. The free scan shows each gap with the file and line; the Doctor can fix most of them automatically.
Start free DPDP scanQuestions
Is 'by continuing to browse you agree' valid consent?
No. Implied consent from browsing is not a clear affirmative action.
Do I need consent for Google Analytics?
Analytics is not necessary to provide the service, so it should run only after consent.
Will blocking trackers break my site?
The Doctor keeps stub functions so existing tracking calls do not throw errors; tags start working the moment consent is given.
More DPDP guides
General information on the DPDP Act, 2023 and DPDP Rules, 2025 — not legal advice. Independent audit and certification: NovaCert.