Tutorials

The Draftly Paper

15 March 2026

How to Add a Cookie Consent Banner to Your Draftly Site

GDPR and India's DPDP Act require cookie consent on sites collecting user data. Here's the simplest compliant implementation.

Draftly Team5

If your site uses Google Analytics, Facebook Pixel, or any tracking cookie, a consent banner is legally required for EU visitors and increasingly expected for Indian visitors under the DPDP Act.

Simplest Solution: Osano or CookieYes

Both have free tiers and work via script embed.

  1. Sign up at cookieyes.com (free plan covers most small sites)
  2. Add your domain
  3. Copy the script tag provided
  4. In Draftly: Settings → Custom Code → Before </head>
  5. Paste and save

The banner appears automatically on first visit.

Customise the Banner

  • Match colours to your brand in the CookieYes dashboard
  • Set the position (bottom bar, floating box, etc.)
  • Translate to Hindi or other languages if needed

What You Must Tell Users

  • What cookies you use
  • Why (analytics, advertising, functionality)
  • How to opt out

If you use Google Analytics, enable Google Consent Mode V2 in your cookie tool settings. This passes consent signals to Google correctly.

Do I Need This?

If your site only uses session cookies (no tracking, no analytics) — no. If you have GA4, Facebook Pixel, or any ad tracking — yes.

Presets that fit this

Next on the pileHow to choose a website preset: judge the structure, ignore the copyTutorials · 7 min read

Also on the desk