Cookie consent for e-commerce sites: what you need and how to do it well
Which cookies need consent, how to build a fair banner, what India’s DPDP Act and Europe’s rules expect, and how to keep measuring without annoying shoppers.

- Essential cookies need no consent, but analytics and marketing cookies usually do under EU rules and need a lawful, clear basis elsewhere
- A fair banner offers equal accept and reject choices, with no pre-ticked boxes
- Record choices and respect changes, and do not load optional trackers before consent where it is required
Cookies are small files and similar technologies that help a site remember things. Some are essential. Others track behaviour for analytics and advertising. The rules differ by country, so build a banner that meets the strictest rules you are exposed to. This is general information, not legal advice.
Types of cookies
| Type | Purpose | Consent? |
|---|---|---|
| Strictly necessary | Keep a cart, log in, security, load balancing | Not required |
| Functional | Remember language, region or preferences | Often yes, depending on the rule |
| Analytics | Count visits, see which pages work | Usually yes in the EU |
| Marketing | Track across sites for ads and retargeting | Yes |
What the rules say
- EU and UK: the ePrivacy rules and the GDPR generally require consent before setting non-essential cookies. Consent must be informed, specific and given by a clear action, and refusing must be as easy as accepting (GDPR guide).
- India: there is no standalone cookie law, but India's DPDP Act requires a clear notice and valid consent for processing personal data for stated purposes, which covers tracking that identifies people (DPDP guide).
If you sell to Europe as well as India, follow the stricter standard everywhere to keep it simple.
Build a fair banner
- Explain in plain words what you use cookies for.
- Offer equal choices: "Accept all" and "Reject non-essential" with the same prominence.
- No pre-ticked boxes for optional categories.
- Let people choose by category and change their mind later through a link in the footer.
- Do not block the site unless the visitor agrees (no "cookie walls").
- Do not nudge with hidden decline buttons or confusing wording, which India's dark-pattern guidelines and EU regulators target.
Technical points
- Hold optional scripts until consent is given where consent is required. A banner that is shown while trackers already fire does not comply.
- Record each choice with the time and version of the banner, so you can show it later.
- Honour changes and expiry. Re-ask after a reasonable period or when your cookies change.
- Keep a cookie list with name, purpose, duration and provider, and publish it in your cookie policy.
Keep measurement useful without tracking everyone
- Use privacy-friendly analytics that do not use identifying cookies, where appropriate.
- Rely on first-party data such as orders and email sign-ups.
- Use server-side measurement from your platform for sales and conversions.
- Expect lower numbers in tools that need consent, and focus on trends rather than exact counts.
What your platform should provide
A good platform offers a configurable banner, a cookie policy template and ways to switch off optional tools until consent. Orvexa's own site has a cookie preferences page with separate controls for analytics, functional and marketing cookies.
What to do next
Open your store in a private window, before clicking anything, and look at the cookies and requests it sets. If marketing trackers load before you have chosen, fix that first.
Frequently asked questions
Do I need a cookie banner if I only use essential cookies?
Not for consent purposes, though you should still explain them in your privacy or cookie policy.
Is Google Analytics a cookie that needs consent?
In the EU, analytics tools that set identifiers generally need consent. Check your tool's settings and your local rules.
Can I refuse service to people who reject cookies?
Avoid it. Making access depend on accepting optional cookies is widely considered non-compliant in the EU.


