How to Add a Cookie Consent Banner to Your Draftly Site

Draftly Team
D
Draftly Team
March 15, 2026
5
Tutorials

Summary

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

How to Add a Cookie Consent Banner to Your Draftly Site

How to Add a Cookie Consent Banner to Your Draftly Site

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.

  • Sign up at cookieyes.com (free plan covers most small sites)
  • Add your domain
  • Copy the script tag provided
  • In Draftly: Settings → Custom Code → Before ``
  • 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

Google Consent Mode V2

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.

Related Articles

More in Tutorials →