Skip to content

Website builder · Install guide

Cookie consent for Elementor

Updated

Elementor Pro has a Custom Code feature made for scripts like this. On Elementor's free version, a header-code plugin does the same job.

Setup time
About 5 minutes
Coding
None: copy and paste
Laws covered
GDPR, UK GDPR, CCPA, DPDP
Google Consent Mode v2
Built in, basic or advanced

Set up cookie consent on Elementor in 3 steps

  1. Create a free accountAdd your website. Kiescy scans it and finds the trackers that need consent.
  2. Paste one script into ElementorYour banner appears and starts holding back trackers until visitors choose.
  3. Check it worksOpen your site in a private window and run the free check to confirm nothing loads early.

You'll need: Elementor Pro for the Custom Code feature (or any free header-code plugin).

Why Elementor sites need cookie consent

Elementor sites are often agency-built marketing sites full of embeds: YouTube backgrounds, Google Maps, chat widgets and ad pixels. Each of those sets cookies, which is why EU visitors need to be asked first.

Your options on Elementor

ApproachGood forWatch out for
Elementor's own popupsSimple noticesA popup isn't a consent manager: it doesn't block scripts or keep records
A WordPress consent pluginSites already full of pluginsAnother plugin to update; regional rules vary
Kiescy via Custom CodeAgencies managing many client sitesOne script per site, managed from one account

Add your privacy policy

On your policy page, drag in an HTML widget and paste the embed. It inherits your Elementor page's width and spacing.

HTML widget
<div data-kiescy-doc="privacy"></div>
<script src="https://script.kiescy.com/embed/policy/YOUR_SITE_KEY.js" async></script>

Check that it works

Open your site in a private window: the banner should appear for a first-time visitor. Then run the free privacy check, which opens your site as a new EU visitor and lists anything that still loads before consent.

Kiescy's monitoring repeats that check on a schedule and emails you if a new script starts tracking before consent.

What your Elementor visitors see

Kiescy detects where each visitor is and shows the version their law requires, so you don't have to choose between the strictest banner for everyone and no banner at all.

GoodEU, UK, India and other opt-in regions: an opt-in banner. Analytics, ad pixels and embeds wait until the visitor agrees; Reject is as easy as Accept. Banner text: We value your privacy. We use cookies to run this site and, with your permission, to measure visits and show relevant ads. Buttons: Accept all, Reject all, Customise.
GoodCalifornia and other US states: an opt-out notice with a "Do Not Sell or Share" link, and Global Privacy Control honoured automatically. Banner text: Your privacy choices. We share some data with advertising partners. You can opt out at any time. Buttons: Do Not Sell or Share My Personal Information, OK.

Trackers Elementor sites usually load

These are the tools that most often need consent on Elementor sites, and how Kiescy treats them. Run a cookie scan to see exactly what yours loads.

ToolCategoryWhat happens
YouTube and Vimeo video widgetsSocial / performanceIframes aren't blocked by scripts; use Elementor's privacy mode or a click-to-load placeholder
Google Maps widgetPerformanceSame: an iframe that loads Google immediately
Meta Pixel, Google Analytics via pluginsAdvertising / analyticsHeld back once your scan finds them
Elementor Forms with reCAPTCHAEssentialSpam protection

Troubleshooting

The banner shows in the editor preview

Custom Code can run in previews. Set the condition to exclude the editor if it gets in the way, or just dismiss it; your choice is stored only in your browser.

YouTube videos still set cookies

Iframes load before any script can intervene. Turn on the Video widget's Privacy mode (youtube-nocookie) and consider a click-to-play image for EU visitors.

Compliance checklist for Elementor

  • A consent banner that blocks non-essential trackers until the visitor agrees (opt-in for the EU, UK and India).
  • A "Do Not Sell or Share" option for California visitors, and Global Privacy Control honored.
  • A privacy policy that names the tools above, linked from every page.
  • A cookie policy listing the cookies your scan finds.
  • A way for people to request, correct or delete their data.
  • Records of each consent choice, kept as proof.
  • Privacy policy linked in the footer template (Theme Builder → Footer).
  • Form widgets: add a consent checkbox if you use submissions for marketing.

Guides for Elementor site owners

Questions

Does it work with Elementor Hello and Astra themes?

Yes. The script runs in the page head regardless of theme.

Can I style the banner to match my Elementor design?

Yes. Kiescy's banner editor lets you set colors, fonts, position and corner radius to match your site.

Official Elementor documentation

Menus move. If a step above doesn't match what you see, Elementor's own docs show the current way to add code.

Get compliant this afternoon, not this quarter.

Set up your policies, banner and request form in one place. Free while Kiescy is in early access.