Cookies, trackers and consent
The DPDP Act never says the word cookie. It covers personal data in digital form, and an identifier that lets a site or an ad network recognise a person is personal data. That is why trackers matter.
Strictly necessary vs optional scripts
Personal data is any data about an individual who can be identified by or in relation to it (s.2(t)). Cookie IDs, device IDs and the IP addresses analytics and advertising tools collect usually fall inside that.
- Optional: analytics, advertising, session-replay and marketing tools (Google Analytics, Meta Pixel, Microsoft Clarity, Hotjar, CleverTap, MoEngage and the like). The reasonable reading is that they need s.6 consent, with a notice, before they run.
- Strictly necessary: what the service the person asked for cannot work without, such as login, a shopping cart, fraud and bot protection, and remembering her cookie choice. List these in the notice; they need no toggle.
India has no general legitimate-interests ground. The legitimate uses in s.7 are narrow, so analytics cannot usually rest on them.
What fires before a visitor makes a choice
Most tracker problems happen in the first second. A tag manager loads on the page, then loads every tag in its container, and those tags set cookies and send requests before any banner has rendered. A banner that only hides itself after a click changes nothing about what already ran.
- Load optional scripts only after consent, or keep them inert until then (for example as type="text/plain" scripts a consent tool activates).
- Set Google Consent Mode defaults to denied before any Google tag loads.
- Hold third-party embeds (YouTube, Maps, chat widgets) behind a click-to-load placeholder.
- Check the result in a fresh browser profile: what cookies exist, and which third-party hosts were contacted, before you click anything.
CheckMyDPDP's first pass does exactly that check: it loads the page cold in a new browser context and records every cookie, storage key and request.
Accept and reject with equal effort
Consent must come from a clear affirmative action (s.6(1)). Boxes ticked in advance, or wording that treats scrolling or staying on the page as agreement, are not an affirmative action by the person.
The Act does not regulate banner layout, so whether Reject must sit beside Accept on the first layer is not settled by its text. Two other instruments point the same way. The Central Consumer Protection Authority's Dark Patterns Guidelines, 2023 list practices such as confirm shaming, forced action, interface interference and nagging as dark patterns, and apply to platforms offering goods or services in India, including e-commerce sites covered by the Consumer Protection (E-Commerce) Rules, 2020. A banner whose Reject is hidden, greyed out or two screens deep is the kind of design those Guidelines describe.
The practical test: can a visitor say no in the same number of clicks, with a button of the same weight, as yes?
Sources
- Digital Personal Data Protection Act, 2023 (Gazette of India, 11 August 2023)
- Digital Personal Data Protection Rules, 2025, G.S.R. 846(E), 13 November 2025
- Guidelines for Prevention and Regulation of Dark Patterns, 2023 (Central Consumer Protection Authority, under the Consumer Protection Act, 2019)
- Consumer Protection (E-Commerce) Rules, 2020