PrivacyQuick

Platform guides

Adding a cookie banner to a Wix site

Most Wix sites should start with Wix's own cookie banner, because Wix's built-in tracking and apps follow it. Custom code you add yourself must be categorized correctly, or it loads before consent, and an external banner only fully controls the scripts you add yourself.

  • Plain English
  • Written for website owners
  • Free to read

To add a cookie banner to a Wix site, the simplest route is Wix's built-in banner, which you set up from the Privacy & Cookies area of your site dashboard. Then make sure any code you added under Settings → Custom Code has the right category, because Wix loads custom code as "Essential", without consent, unless you change it. If you prefer a different consent platform, you can add its script as custom code in the head, but on Wix it only fully controls scripts you add yourself, not Wix's own integrations.

Wix redesigns its dashboard fairly often, so the menu names below may differ slightly on your site.

What sets cookies on a Wix site

Before choosing a banner, it helps to know what you're managing. On a typical Wix site, cookies and similar storage come from:

  • Wix itself: session, security and performance cookies the platform needs to run the site, plus Wix's own visitor analytics.
  • Wix apps: Wix Stores, Bookings, Chat, Members and other Wix apps you add.
  • Marketing integrations: Google Analytics, Google Tag Manager, the Meta Pixel and others connected through Wix's marketing integrations.
  • Third-party apps from the Wix App Market.
  • Custom code and embeds that you or a developer added.

Run a free cookie scan of your published site to see what actually loads. The first three groups are under Wix's control and follow Wix's consent system. The last two depend on how you set them up.

Wix's current banner for new sites is provided through its partner Usercentrics. Wix's help center describes the basic version as free, with extra features, such as more translations, on paid tiers. Sites that already had Wix's older native banner can keep using it.

To set it up:

  1. Open your site's dashboard.
  2. Go to the Privacy & Cookies area. Depending on your dashboard version, it may be under Settings.
  3. Add or open the cookie banner and follow the setup steps.
  4. Choose the banner text, buttons and design, and make sure visitors can reject as easily as they can accept.
  5. Publish your site.

The advantage is integration. Wix categorizes its own cookies and its apps, and the marketing integrations follow the visitor's choice. You don't have to find and tag each Wix tool yourself.

Turning on the banner doesn't automatically cover code you added yourself. Wix treats custom code as Essential until you change its category, so it runs whatever the visitor chooses.

Categorize your custom code

If you've pasted scripts into Wix, such as a chat widget, a heatmap tool, an ad tag or a verification snippet, you need to assign each one a category so Wix's banner can hold it back:

  1. Go to Settings in your dashboard.
  2. Under Development & integrations, click Custom Code.
  3. Open a snippet and go to its Code Type tab.
  4. Choose the category that fits: Essential, Functional, Analytics or Marketing.
  5. Apply the change and publish.

Wix's help center is clear that choosing the right category is the site owner's responsibility. If a script fits more than one category, pick the stricter one, so it waits for the more sensitive consent. Our guide to cookie categories has examples of what belongs where. Only genuinely necessary code, such as the code that makes the site work at all, should stay Essential.

What custom code can't do on Wix

Wix's own help article on custom code lists some limits worth knowing:

  • Your site must be published and have a connected domain.
  • Tracking tools such as Google Analytics, Google Tag Manager, and the Meta and TikTok pixels don't work through custom code. Wix tells you to use its marketing integrations for them.
  • Wix has tightened front-end security over time, and its help center notes that some older third-party snippets may be blocked until the provider updates them.
  • If you change the domain assigned to the site, your custom code snippets are removed.

You can add an external consent platform's script through custom code. This makes sense if your important trackers are scripts you add yourself, or if you manage many sites and want one banner and one consent log across them.

Add the banner script

  1. Go to Settings → Custom Code and click + Add Custom Code.
  2. Paste the banner snippet.
  3. Name it, for example "Cookie banner".
  4. Under Add Code to Pages, choose All pages and load it on each new page.
  5. Under Place Code in, choose Head.
  6. On the Code Type tab, keep it Essential. The banner itself must load before any consent exists.
  7. Apply and publish.
<script src="https://cdn.privacyquick.com/v1/privacy.js" data-site-id="pq_xxxxxxxxxx" async></script>

Block your other custom code

For scripts you add as custom code, change the type so your banner releases them after consent:

<script type="text/plain" data-category="functional" src="https://chat.example.com/widget.js" async></script>

After publishing, view the page source of your live site to confirm the tag kept its type and data-category attributes, then test in a private window. The script blocking docs explain how release works, and our guide on blocking cookies before consent compares techniques.

The limits of an external banner on Wix

Be realistic about what an external banner can and can't reach on Wix:

  • Wix-managed tracking follows Wix's consent system, not your banner. Marketing integrations, Wix apps and Wix's own analytics take their signal from Wix's consent policy. If Wix's banner is off and nothing updates Wix's consent policy, they may run without waiting for your banner.
  • Wix offers a consent API for developers. Through Velo, Wix's development platform, code can read and set the site's consent policy. A developer can use it to pass your banner's choice to Wix, but you'll need to build and test that yourself.
  • Two banners is worse than one. Don't run Wix's banner and an external banner side by side. Visitors would be asked twice, and the two sets of choices can disagree.

So the practical rule: if your site relies mainly on Wix's marketing integrations and Wix apps, use Wix's banner. If your trackers are mostly custom code you control, or you've connected Wix's consent policy to your banner through Velo, an external banner can work well.

Embeds and iframes on Wix

Wix's Embed HTML (iframe) element runs your code inside an iframe on a separate domain, not in your page. Scripts inside it can set third-party cookies, and a banner script in your site's head can't see or block them. The same applies to video and map elements, which load content from YouTube, Vimeo or Google.

For these, check whether Wix's banner covers the element. If not, consider whether you need it, or load it only after a click. Our guide to YouTube embeds and cookies explains why "privacy-enhanced mode" alone isn't the answer.

  1. Publish the site. Custom code only runs on the published site, not in the editor preview.
  2. Open the live site in a private window.
  3. Open DevTools before interacting. In the Network tab, filter for your analytics and ad domains; in the Application tab, look at Cookies and Local Storage. Our guide to checking cookies in Chrome DevTools shows where to look.
  4. Reject all and browse a few pages. Non-essential requests shouldn't appear.
  5. Accept all and confirm your tools now load.
  6. Re-scan the site to compare before and after.

Troubleshooting common problems

If a scan or your own testing shows something loading before consent, work through these causes in order:

  • A snippet is still Essential. Recheck the Code Type of every entry in Custom Code, including old ones added by a previous developer or an agency.
  • The tool was added twice. A Google Analytics tag connected through marketing integrations and also pasted as custom code will behave differently in each place. Keep one.
  • An App Market app loads its own scripts. Check the app's settings and documentation for how it handles consent, and contact the developer if it isn't clear.
  • The content sits in an iframe. Embed HTML elements, videos and maps load from other domains, as described above.
  • You're testing the editor preview. Custom code and banners behave differently there. Always test the published site.

If the banner itself doesn't appear, confirm the site is published on a connected domain, the snippet is set to all pages, and nothing in your browser, such as an ad blocker, is hiding it.

  • One banner only: Wix's built-in banner, or an external one with a plan for Wix-managed tracking.
  • Every custom code snippet has the right Code Type. Only truly necessary code is Essential.
  • Tracking tools that Wix supports are connected through marketing integrations, not pasted as code.
  • Iframes and embeds are reviewed, and loaded only when needed.
  • Your privacy policy and cookie policy list what you found. PrivacyQuick's policy generator can embed a cookie table built from scans.
  • Visitors can reopen the banner later from a footer link or button.
  • You re-test after adding any app or snippet.

Frequently asked questions

Does Wix have a built-in cookie banner?

Yes. New Wix sites get a cookie banner powered by Wix's partner Usercentrics, set up from the Privacy & Cookies area of the dashboard; Wix says the basic version is free. Sites that already used Wix's older banner may still have it.

Why does my custom code run before consent on Wix?

Wix treats custom code as Essential by default, which means it loads without consent. Open the snippet under Settings → Custom Code and set its Code Type to Marketing, Analytics or Functional so Wix's banner can hold it back.

Can I use Google Analytics through Wix custom code?

Wix says tracking tools such as Google Analytics, Google Tag Manager and the Meta and TikTok pixels don't work through custom code and should be connected with Wix's marketing integrations instead.

Do I need a premium plan to add custom code on Wix?

Wix's custom code feature requires a published site with a connected domain, and connecting a domain requires a Wix premium plan. Check Wix's current plan details for your account.

Check your own website in 30 seconds

Our free scanner lists every cookie and tracker your site sets, sorted into categories, before you add a banner.

Run a free cookie scan Start free

This guide is general information, not legal advice. Laws and regulator guidance change; check the current rules for your situation or ask a lawyer.