DPDP guide · updated 2026-12-05
DPDP compliance for React and Next.js
In Next.js, trackers usually live in app/layout or pages/_document. The Doctor edits those files, validates every change with a TSX/JSX parser, and runs your build and tests before handing over.
What gets fixed
- Consent manager added to the root layout head.
- Raw tracker script tags converted to wait for consent; next/script components handled by the AI engineer with review.
- Privacy notice, rights and grievance pages added to /public, and footer links added to the layout.
- Express back ends get consent and rights endpoints mounted at /odg-dpdp.
Safety
- If npm test or npm run build passed before the repair and fails after, the responsible change is rolled back automatically.
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
Do you push to my main branch?
Never. Connected GitHub repositories receive a pull request you can review and merge.
More DPDP guides
DPDP compliance checklist for websites and appsA DPDP consent banner that actually blocks trackersWhat your DPDP privacy notice must containDPDP compliance for WordPress, without touching your themeDPDP compliance for custom PHP and Laravel websitesDPDP compliance for Android appsDPDP Act penalties explainedDPDP data rights requests and grievancesPersonal data breach: the 72-hour rule
General information on the DPDP Act, 2023 and DPDP Rules, 2025 — not legal advice. Independent audit and certification: NovaCert.