How to add a cookie banner to Wix
Use your own cookie banner on a Wix site, with FrostBanner's free plan.
Wix has its own cookie banner. Use FrostBanner instead if you want a banner that matches your brand, a consent log you can export, and control over the tracking code you add yourself.
Before you start: Wix runs custom code only on a published site with a connected domain. Tools you connected through Wix's own marketing integrations follow Wix's consent settings, which FrostBanner doesn't control. For FrostBanner to block a tracker, add that tracker with Custom Code as shown below.
1. Create your banner
- Sign in to FrostBanner with Google, GitHub or your email.
- Add your website's domain.
- Pick a style, write your texts and paste the link to your cookie policy. The preview shows exactly what visitors will see.
- Open the Install tab and copy your line of code. It looks like this:
<script src="https://app.frostbanner.com/v1/fb.js" data-site="YOUR_SITE_ID"></script>
2. Add it to Wix
- In your Wix dashboard, open Settings.
- In Development & integrations, click Custom Code, then + Add Custom Code.
- Paste your FrostBanner line and name it “FrostBanner”.
- Under Add Code to Pages, choose All pages, and under Place Code in, choose Head.
- Leave its category as Essential: the banner must load before consent, because it is what asks for it.
- Click Apply.
Turn off Wix's own cookie banner so visitors don't see two. Then open your published site in a private window. The FrostBanner banner should appear.
3. Make tracking wait for consent
Add each tracking tag as its own Custom Code snippet in the Head, changing the script so it waits for FrostBanner. For Google Analytics, change:
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX"></script>
to:
<script type="text/plain" data-category="analytics" async
src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX"></script>
Use analytics for statistics, marketing for ad pixels such as Meta Pixel, and functional for extras such as chat widgets.
4. Check it works
- Open the published site in a private window and click Reject all. In the browser's developer tools (Network tab), Google Analytics requests should not appear.
- Reopen preferences with the small button, accept Analytics, and the requests should start.
- Your consent log in the FrostBanner dashboard shows each decision.
Things to know
- FrostBanner sends Google Consent Mode v2 signals, so Google tags know what the visitor chose.
- If you earn from Google AdSense with visitors from the EU, personalized ads need a Google-certified platform with IAB TCF. FrostBanner doesn't have it yet, so Google would show only non-personalized or limited ads.
- You still need a cookie policy page that lists the cookies your site uses.
Add your Wix cookie banner now. The free plan covers one website, with no page or pageview limit.
Wix is a trademark of Wix.com Ltd. FrostBanner is not affiliated with Wix. Wix steps are from Wix Help Center, checked on 1 November 2026. FrostBanner does not give legal advice.