Integrations
WixWix
implementation guidePlatforms and stores

Cookie banner for Wix: installing CookiePilot and platform limits

Add the CookiePilot banner to a Wix site with Custom Code in the Head section. CookiePilot collects consent and controls the scripts you paste below it. It does not control Wix's marketing integrations, such as Google Analytics, GTM and pixels. Read the limitations before you install.

Consent behaviour

You paste the code once in Settings → Custom Code and it loads on every page of the published site.

The Consent Mode v2 stub sets denied, and scripts added as Custom Code below CookiePilot wait for the visitor's decision.

Google Analytics, GTM and the Meta and TikTok pixels only run on Wix through Marketing Integrations. Wix starts those according to its own consent policy, not CookiePilot.

Setup steps

Custom code only runs on a Wix site with a Premium plan and a connected domain. Add that domain in the CookiePilot panel and copy the install code.

In the Wix dashboard, open Settings → Development & integrations → Custom Code and click “+ Add Custom Code”.

Paste the code, give it a name, choose All pages under “Add Code to Pages” and Head under “Place Code in”. Confirm with Apply.

On the Code Type tab, keep the Essential category. With any other category Wix holds the code until consent in its own banner, so the CookiePilot banner would not show.

Turn the Wix banner (Privacy & Cookies) off, so visitors do not see two banners. If you rely on Marketing Integrations, read the limitations below first.

Publish the site. Custom Code does not run in the editor or preview, only on the published site.

Open the published site in a private window and check it using the checklist.

Platform limitations

Wix Marketing Integrations (Google Analytics, GTM, Meta and TikTok pixels) follow Wix's consent policy. By default it allows all cookies, and only Wix's banner settings or a consent app from the Wix App Market can change it. Pasted CookiePilot code will not hold those integrations back.

If you use Marketing Integrations and they must wait for consent, pasted CookiePilot code alone cannot ensure that. Today that takes Wix's own consent mechanism or a consent app from the Wix App Market.

Since December 2025 Wix limits third-party scripts' access to some browser features, including Wix's own cookies and event listeners. This can limit automatic blocking, so go through the whole checklist after publishing.

Wix does not document whether Head code loads before Marketing Integrations. Wix always sets its essential cookies, regardless of consent.

Changing the site's primary domain deletes pasted Custom Code snippets. Add the code again after such a change.

Example snippet

Example snippet
<script src="https://cdn.cookiepilot.io/stub.js"></script>
<script async src="https://cdn.cookiepilot.io/cookiepilot.js" data-cpkey="YOUR_SITE_KEY"></script>

Test checklist

The CookiePilot banner shows on the published domain and the Wix banner does not.

The first dataLayer entry is consent default with denied values.

Scripts added as Custom Code below CookiePilot send no requests before consent.

In the Network tab, check whether tags from Marketing Integrations (google-analytics.com, connect.facebook.net) start before consent. If they do, see the limitations.

Related integrations

See the setups that most often appear together with this integration.

Ready to configure it?

Start CookiePilot, choose the right integration and verify that tags wait for user consent before they run.