Wix offers a built-in way to add custom code to your site's header without touching any template files. This guide walks through the process step by step.
Before you start
You will need:
- An active CookieScan subscription (view plans)
- Your banner installation code from the CookieScan dashboard (Cookie Banner → Install Code)
- A Wix Premium plan – custom code is not available on the free plan
- Admin access to your Wix account
The install code looks like this:
<script src="https://banner.cookiescan.com/js?id=YOUR-COOKIESCAN-ID"></script>
Replace YOUR-COOKIESCAN-ID with the code from your dashboard.
Method 1: Add via Custom Code (recommended)
Wix has a dedicated Custom Code area where you can add scripts to the head of every page.
Step 1 – Open your site dashboard
- Log into Wix.com
- From the list of your sites, click Select & Edit Site on the site you want
- In the left sidebar, scroll down to Settings
Step 2 – Navigate to Custom Code
- In the Settings menu, click Custom Code (under Advanced)
- Click the + Add Custom Code button (top right)
Step 3 – Configure the code snippet
Fill in the form as follows:
- Paste the code snippet here: paste your CookieScan script tag
<script src="https://banner.cookiescan.com/js?id=YOUR-COOKIESCAN-ID"></script> - Name:
CookieScan Banner - Add Code to Pages: select All pages and check Load code once
- Place Code in: select Head
Step 4 – Apply
- Click Apply
- Wix will publish the change automatically
- Visit your site in a new incognito window to confirm the banner appears
Method 2: Using Wix Editor (alternative)
If you prefer to manage custom code inside the editor itself:
- Open your site in the Wix Editor
- Click Settings in the top menu
- Select Tracking & Analytics
- Click + New Tool → Custom
- Paste your CookieScan script tag
- Set Name to
CookieScan Banner - Set Add Code to Pages to All pages
- Set Place Code in to Head
- Click Apply, then Publish your site
Disable Wix's built-in cookie consent banner
Wix has its own basic cookie banner. Turn it off so it doesn't conflict with CookieScan:
- Go to your Wix dashboard → Settings
- Click Cookies & Privacy
- Toggle Cookie Consent Banner to Off
Verify the installation
- Visit your site in a new incognito window
- The CookieScan banner should appear
- Open DevTools (F12) → Network tab → filter by
cookiescan - You should see
banner.cookiescan.comloaded successfully
You can also use the Verify Installation step in your CookieScan dashboard's Install Code popup.
What happens next
Once installed, CookieScan handles the rest:
- Scans your Wix site and detects every cookie, including those from Wix's built-in tools
- New cookies appear in Cookie Manager → Unclassified for you to categorise
- Blocks cookies until the user consents to their category
- Logs every consent decision
Troubleshooting
Banner not appearing
- Check you're on a paid Wix plan – free plans don't support custom code
- Check you selected Head and All pages in the Custom Code settings
- Republish your site after saving
- Clear your browser cache
Wix's own banner still showing
- Go to Settings → Cookies & Privacy and disable the built-in banner
Cookies still loading before consent
- Wix's built-in tracking tools (Visitor Analytics, Wix Chat, etc.) load independently
- In Wix dashboard, go to Marketing & SEO → Marketing Integrations and review which are enabled
- Run a fresh scan in CookieScan Cookie Manager → Rescan Domain to detect them
Full documentation
For detailed setup help, see the support guide linked in your CookieScan dashboard, or visit our support guides.