Install CookieAsk on Wix
Templates and presets are not legal advice.
Wix lets you add your own code to every page under Custom Code. This needs a Premium plan with a connected domain (a Wix requirement, not ours).
1. Turn off Wix's own cookie banner
If you used Wix's built-in banner, remove it so visitors see one banner only (in the Wix dashboard the cookie banner sits under Settings; the exact name changes between editor versions).
2. Add the snippet
- Open the Wix dashboard of your site, then Settings → Custom Code (in some versions under Advanced).
- Choose Add Custom Code (top right).
- Paste your snippet from the CookieAsk install page. It is shown here with placeholders; use the one from your dashboard:
<script src="https://YOUR-LOADER-ORIGIN/l/YOUR-SITE-KEY.js" referrerpolicy="origin"
data-cfasync="false" data-skip-moving="true" data-no-optimize="1" nowprocket></script>
- Name it
CookieAsk. - Add Code to Pages: All pages. Leave Load code on each new page selected, so the loader runs on every page.
- Place Code in: Head.
- Apply, then publish your site from the editor (custom code does not run in the editor's preview).
3. Check the order
Wix adds its own scripts to the page too, and custom code is not always the very first thing in <head>. The loader must run before the scripts it has to block, so check it:
- Open the published site, view the page source and look for the CookieAsk tag near the top of
<head>. - Use the verification scan on the install page. If it reports that another script ran first, move any tracking code you added yourself (Google Analytics, Meta Pixel, other custom code entries) so that it comes after CookieAsk: in Custom Code drag the CookieAsk entry to the top of the list.
4. Tracking added through Wix itself
Marketing integrations added through Marketing & SEO → Marketing Integrations (Google Analytics, Meta Pixel and similar) and tags from Wix apps are injected by Wix, not by you. CookieAsk blocks the ones it recognises in the browser, but it cannot see what Wix puts in the page before the loader has run. Run the scan after adding any such integration and read what it lists.
5. If you use a Content-Security-Policy
Wix sites send their own policy and do not let you change it, so nothing is needed on your side.
Check it works
- Open the published site in a private window: the banner appears.
- Answer it, and look at the Installation status card on the install page for the last consent event.