Skip to main content

Menu

Choose a theme and configure high-contrast mode. Preferences are saved in your browser only.

User Preferences

Theme

Pick a palette or follow your system preference.

High Contrast

Sharper text and borders. System follows your OS setting.

Practical guides

How to add a cookie consent banner to Wix (step by step)

Wix keeps a dedicated custom code slot in the dashboard, and a consent banner needs exactly one script in that slot. No app market visit, no subscription, no account on anyone’s server. Five minutes and you’re done.

Wix documents the custom code flow itself; if their dashboard has moved since we wrote this, their help center article shows the current path.

Before you start

  • A Wix site on a premium plan. Custom code in the head is a paid-plan feature; if you cannot find the setting below, your plan does not include it.
  • The Zest snippet from the playground, configured to taste:
<script>
  window.ZestConfig = {
    position: "bottom",
    theme: "auto",
    policyUrl: "/privacy-policy"
  };
</script>
<script src="https://cdn.jsdelivr.net/npm/@freshjuice/zest/dist/zest.min.js"></script>

Add the code

  1. Open the Wix dashboard. In Wix Studio, open your workspace and pick the site; in the classic editor, click Settings on your site.
  2. Go to Custom Code. Classic editor: Settings → Custom Code, under “Development & integrations”. Wix Studio: Settings → Advanced → Custom Code.
  3. Click + Add Custom Code.
  4. Paste the Zest snippet into the code box.
  5. Under Place code in, pick Head. Zest has to load before your tracking scripts so it can gate them.
  6. Under Add code to pages, pick All pages. Keep Load code once for standard sites; for a single-page-app style Wix site, leave whatever Wix recommends.
  7. Hit Apply, name it “Zest cookie consent”, save.
  8. Publish. Custom code runs on the published site, not in the editor preview.

Two banners? Turn one off

Wix ships its own cookie banner switch (Settings → Privacy & Cookies). Leave it on with Zest installed and every visitor meets two banners, which is a good way to annoy people twice. Switch it off and let Zest handle categories, script blocking, Google Consent Mode v2, GPC, and geo rules. The built-in banner does none of that.

Check it works

Open the live site in a private window:

  • The banner shows up on first visit.
  • Pick your categories, reload, and the banner stays gone. Choices are remembered.
  • Watch the network tab: Google Analytics or Meta Pixel requests should only fire after you accept the marketing category.

When something goes wrong

No banner. Custom code runs on premium plans, on the published site only. Publish, then hard-refresh.

Trackers fire before consent. Order matters. Zest goes first in your custom-code box, ahead of any Marketing Integrations snippets. If Wix injects its own analytics, disable that toggle or set the tool’s consent mode accordingly.

The banner returns on every visit. You are on a preview domain or in a private window, both of which forget storage. Test the real domain in a normal window.

Why skip the app market

Wix’s app market is full of consent widgets that bill monthly and load from their own servers. Zest is a 16KB open-source script: no subscription, no pageview quota, and you can pin the CDN version or self-host it. The banner stays yours even if we vanish.

Also need the policy page? The free policy generator drafts one from six questions about your site.

Own your cookie banner.

Zest is free and MIT-licensed, and it doesn't phone home to anyone.
Drop the script in and you're done.