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
<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.
Squarespace
Add the CookiePilot banner to a Squarespace site with header Code Injection. You paste the CookiePilot code at the top of the Header field and Google Analytics and GTM below it. You turn off the built-in Squarespace banner and replace the native Google Analytics connection with a tag below the stub.
Webflow
Add the CookiePilot banner to a Webflow site with Custom code in Site settings. You paste the CookiePilot code at the top of the Head code field and Google Analytics and GTM below it, so Consent Mode v2 sets denied before the tags you paste below it run.
Framer
Add the CookiePilot banner to a Framer site with custom code in Site Settings. Consent Mode v2 starts at the beginning of head, before Google tags, and the banner runs on the whole site after you publish.
Google Tag Manager
Consent Initialization, dataLayer and tag rules.
Ready to configure it?
Start CookiePilot, choose the right integration and verify that tags wait for user consent before they run.