Guide · DPDP Act

DPDP Act consent implementation: a developer's checklist

What India's Digital Personal Data Protection Act asks of the software that collects consent, and how to build it: the notice, the consent screen, the record you'll need to produce later, withdrawal, children and breaches.

By Sparsh Prajapati, primary developer of PrivacySuraksha, a DPDP consent platform · Updated

This is an engineering guide, not legal advice. Have your counsel confirm how the Act and the Rules apply to your product.

The timeline

If your product collects personal data from people in India, the consent flow is the piece that takes longest to get right, so it's the one to start now.

What the Act asks of consent, in plain words

The checklist

1. Map the data before you design the screen

List every personal data field you collect and the purpose each one serves. Each purpose becomes its own toggle; data with no purpose is data you should stop collecting.

2. Write the notice as versioned content

Keep the notice in your repository or CMS with a version id, itemised by data and purpose. Store a hash of the exact text shown, per language, so you can later say which words a person agreed to.

3. Build the consent screen

4. Block before consent, not after

Analytics and advertising tags must not fire until the person has chosen. With Google tags, set Consent Mode defaults to denied before any tag loads, then update only the purposes they granted:

// before any Google tag loads: everything off until the person decides
gtag("consent", "default", {
  ad_storage: "denied",
  ad_user_data: "denied",
  ad_personalization: "denied",
  analytics_storage: "denied",
});

// after they accept analytics, and only analytics
gtag("consent", "update", { analytics_storage: "granted" });

Respecting the browser's Global Privacy Control signal isn't named in the Act, but it costs little and shows good faith.

5. Record every decision as an event

Write an append-only event for every consent given, changed or withdrawn. Never update a row in place: the history is the evidence.

type ConsentEvent = {
  id: string;                 // uuid
  principal: string;          // pseudonymous id, never the raw email or phone
  purposes: Record<string, "granted" | "denied">; // one entry per purpose
  action: "given" | "withdrawn" | "updated";
  noticeVersion: string;      // which notice text the person saw
  noticeHash: string;         // sha-256 of that exact text, in that language
  language: string;           // "hi", "ta", "en", ...
  source: "web" | "app" | "api";
  at: string;                 // ISO 8601, server time
};

6. Make the records tamper-evident

An append-only table still lives in a database you control, so an auditor has to trust you. Hash each event, fold each day's hashes into a Merkle root, sign the root and publish or anchor it. Anyone can then check a single record against the signed root without access to your database. I wrote up how we did this in PrivacySuraksha: Proving consent without asking anyone to trust our database.

7. Withdrawal in one step, everywhere

8. Handle people's requests

People can ask to access, correct or erase their data and can raise grievances. Give each request an id, an owner and a deadline, and track it to closure.

9. Children

If minors can use the product, add an age check and a verifiable parental consent flow before any processing, as Rule 10 requires.

10. Retention, security and breaches

Questions

When do the DPDP consent rules apply?

The DPDP Rules 2025 were notified in November 2025 and apply in phases. Consent Manager registration applies after one year (November 2026); the notice, security, breach and children's rules apply after eighteen months, around May 2027. Check the official notification for any change to these dates.

Do I need to use a registered Consent Manager?

No. A Consent Manager under the Act is an entity registered with the Data Protection Board that people can use to manage their consents across companies. A consent management platform (CMP) is software a company runs for its own compliance and needs no registration.

Is a cookie banner enough for DPDP compliance?

No. A banner is one place consent is collected. You also need an itemised notice, consent records you can produce later, withdrawal that is as easy as giving consent, handling of people's requests, security safeguards and a breach process.

Which languages must the notice be available in?

The Act lets people read the notice and consent request in English or any of the 22 languages in the Eighth Schedule of the Constitution.

Sources

Need DPDP consent built into your product?

I build consent widgets, consent records you can prove, withdrawal flows and PII discovery, for teams in India and abroad.

Email meHow I work