You have seen it a hundred times: you open a website and a small box pops up saying "This site uses cookies. Accept?" Most of us click "Accept" without reading and move on. But if you own a website, that little box is your responsibility — and many Indian website owners either skip it completely or copy a banner from another site without understanding what it does.
Here is the problem: if your site uses Google Analytics, ads, embedded videos, or social share buttons, it places cookies on visitors' browsers. India's DPDP Act, 2023 requires clear consent before collecting personal data — and tracking cookies count. So yes, your blog or shop site probably needs a proper cookie banner.
The good news: setting one up is easy and free. This guide explains, in simple language, what a cookie consent banner must show, and how to add one to your site in about ten minutes.
Try it free → Cookie Consent Generator
What Is a Cookie Consent Banner?
Cookies are small files a website stores in a visitor's browser. Some are harmless and essential — they keep you logged in or remember what is in your shopping cart. Others track the visitor: which pages they opened, how long they stayed, what ads they clicked.
A cookie consent banner is the pop-up box that asks the visitor's permission before the site places non-essential cookies. Real consent means the visitor clearly says "yes" — not that you assumed yes because they kept scrolling.
Why Indian Websites Need One
Three reasons, from most to least urgent:
- India's DPDP Act, 2023. India's data protection law says personal data can only be collected with free, specific, and informed consent. Tracking cookies collect personal data (like browsing behaviour tied to an identifier). The law's detailed rules are still rolling out, but a proper consent banner is the safest way to comply. (This is general guidance, not legal advice — check with a legal professional for your situation.)
- Visitors from other countries. Many Indian sites get traffic from Europe, where GDPR strictly requires cookie consent, and from other regions with their own rules. One good banner covers you everywhere.
- Trust. Visitors are more careful about privacy today. A site that asks clearly looks professional; a site that silently tracks them looks shady.
What Your Banner Must Show: The 5-Point Checklist
A banner that only says "We use cookies. OK" is not real consent. Here is what a proper one includes:
- A plain-language notice. Say what cookies you use and why, in simple words. Example: "We use cookies to remember your preferences and to see which pages are popular." No legal jargon.
- Clear Accept and Reject buttons. Both must be equally visible. Hiding "Reject" in tiny grey text while "Accept All" is a big green button is a dark pattern.
- Cookie categories. Let visitors choose by type: Necessary (the site will not work without these), Analytics (visitor statistics like Google Analytics), Marketing (ads and remarketing), and Preferences (language, theme).
- A link to your cookie or privacy policy. The banner is the summary; the policy is the full detail. If you do not have one yet, read our guide on whether you need a privacy policy and generate one with the free privacy policy generator.
- A way to change the choice later. Add a small "Cookie settings" link in your website's footer so visitors can withdraw or change consent anytime.
How to Add a Cookie Banner in 10 Minutes
Follow these steps:
- Find out which cookies your site uses. In Chrome, press F12, open the "Application" tab, and look under "Cookies". Common ones: Google Analytics, AdSense, embedded YouTube videos, Google Maps, and chat widgets.
- Sort them into categories. Mark each as Necessary, Analytics, Marketing, or Preferences. Only Necessary cookies can load without consent — everything else must wait for a "yes".
- Write your notice text. Keep it short and honest: what you collect and why. Link to your privacy policy.
- Generate the banner code. Use the free cookie consent generator — fill in your site details, pick your categories, and copy the code it gives you. No signup needed.
- Paste the code on your site. For plain HTML sites, paste it just before the closing </body> tag. On WordPress, use a header/footer plugin or your theme's code settings. Most website builders have a "custom code" section.
- Test it in incognito mode. Open your site in a private window: the banner should appear. Click "Reject", then check (F12 → Application → Cookies) that no analytics or marketing cookies were set. If they were, your tracking scripts are loading before consent — fix their order.
5 Mistakes That Make Your Banner Useless
- Pre-ticked boxes. Consent must be opt-in. Boxes that are already checked when the banner opens do not count.
- "By scrolling, you agree." Continuing to browse is not consent. The visitor must click a clear yes.
- No Reject button. If the only option is "OK", there is no real choice — and no real consent.
- Confusing text. If a 12-year-old cannot understand your banner, rewrite it. Simple language wins.
- Loading trackers before consent. This is the most common technical mistake: Google Analytics fires on page load while the banner is still on screen. Block non-essential scripts until the visitor accepts.
Frequently Asked Questions
Is a cookie banner legally required in India?
India's DPDP Act, 2023 requires consent before processing personal data, and tracking cookies process personal data. The detailed enforcement rules are still being rolled out, but a proper consent banner is the safest way to stay compliant. Treat it as required, not optional.
Do I need one if I only use Google Analytics?
Yes. Google Analytics sets tracking cookies on your visitors' browsers, so you need consent before it runs. Set up Analytics to wait for consent — most banner tools handle this automatically.
Are free cookie banner tools good enough?
For most small websites, blogs, portfolios, and online shops: yes. A good free generator covers the essentials — accept/reject buttons, cookie categories, and a policy link. Large companies with complex tracking may need paid consent-management platforms, but that is overkill for a freelancer's site.
What happens if I just ignore all this?
Three risks: complaints or penalties under data-protection law, ad networks restricting personalised ads on non-compliant sites, and — most immediate — visitors who notice silent tracking and lose trust in your site. A banner takes ten minutes; the downside of skipping it is much bigger.
Do It Today, Not "Someday"
A cookie consent banner is one of those small tasks owners postpone for months. But it is genuinely quick: audit your cookies, sort them into categories, generate the banner code, paste it, test in incognito. Ten minutes, and your site respects your visitors' privacy.
If you run a small business or freelance site, a proper cookie banner plus a privacy policy covers the two most common compliance gaps. Both are free to set up — see our collection of free online tools for freelancers for more.
Try it free → Cookie Consent Generator