Website builder · Install guide
Cookie consent for Divi
Updated
Divi has a built-in place for head code, so no extra plugin is needed. Paste the Kiescy script there and every page gets a law-aware banner.
- 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 Divi in 3 steps
- Create a free accountAdd your website. Kiescy scans it and finds the trackers that need consent.
- Paste one script into DiviYour banner appears and starts holding back trackers until visitors choose.
- Check it worksOpen your site in a private window and run the free check to confirm nothing loads early.
Why Divi sites need cookie consent
Divi powers a huge number of small-business and agency sites, often with Google Analytics, Maps and social embeds added through the Integration tab. Those all need consent from EU and UK visitors.
Your options on Divi
| Approach | Good for | Watch out for |
|---|---|---|
| Divi alone | Design | No consent features |
| A WordPress consent plugin | Plugin-based setups | Divi's performance settings can delay plugin scripts |
| Kiescy in the Integration tab | Keeping plugins lean | Put it above other code in the same box |
Add your privacy policy
On your policy page, add a Code module and paste the embed.
<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 Divi 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.
Trackers Divi sites usually load
These are the tools that most often need consent on Divi sites, and how Kiescy treats them. Run a cookie scan to see exactly what yours loads.
| Tool | Category | What happens |
|---|---|---|
| Google Analytics pasted in the Integration tab | Analytics | Paste it below Kiescy so Consent Mode defaults come first |
| Divi Map module (Google Maps API) | Performance | Add maps.googleapis.com as a blocking rule if you want it held back |
| Video modules (YouTube) | Social | Iframes need a click-to-load approach |
| Bloom / Monarch (Elegant Themes) | Functional | Email opt-in and social sharing |
Google Consent Mode v2 on Divi
Order matters in the Integration box: Kiescy first, then your Google tag. That way Consent Mode v2 defaults exist before gtag.js starts.
New to Consent Mode? Read basic vs advanced Consent Mode v2.
Troubleshooting
The banner appears late or not at all
Divi's Performance options (Defer jQuery, Dynamic JavaScript) and caching plugins can delay head scripts. Exclude the Kiescy script from deferral and clear the static CSS and page cache.
Header code isn't output
Check that Enable header code is switched on in the same Integration tab.
Compliance checklist for Divi
- 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 (Theme Builder or Customizer footer).
Guides for Divi site owners
Questions
Does it work with Divi 5?
Yes. The Integration tab's head code works the same way.
Does Divi have a cookie consent option?
Divi doesn't include a consent manager, so a banner has to come from a plugin or a script like Kiescy.
Official Divi documentation
Menus move. If a step above doesn't match what you see, Divi'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.