If you run a Wix website, you almost certainly need a cookie consent banner. Privacy regulations — including the EU's GDPR, the ePrivacy Directive, and CCPA/CPRA in California — require that you obtain informed consent before dropping non-essential tracking cookies on your visitors. Ignore this, and you're exposed to regulatory fines that can reach into the tens of thousands of euros or dollars.
Most Wix site owners first try the built-in Wix Cookie Consent Banner. It looks tidy, but it gives you little control over which cookies are actually blocked before consent is given — a hard requirement under GDPR. Others turn to generic cookie notice widgets that display a banner without doing the underlying blocking, leaving them technically non-compliant even though something appears on screen.
Secure Privacy takes a different approach. It automatically scans your Wix site for cookies and trackers, classifies them, and blocks all non-essential scripts until your visitor actively consents — meeting the standard required by GDPR, CCPA, and other major privacy laws. Setup takes under five minutes using Wix's built-in Custom Code feature, and no developer is needed.
By the end of this guide, your Wix site will have a fully functional, legally compliant cookie consent banner powered by Secure Privacy — with automatic cookie blocking, a customisable consent interface, and an audit trail you can rely on.
Important: This installation method is only available for Wix sites that are published and have a connected custom domain. Free Wix subdomains (e.g. yourname.wixsite.com/site) do not support Custom Code injection.
Who Is This Guide For?
This guide is for Wix website owners and administrators who:
Need to add a GDPR-compliant cookie banner to their Wix site
Want to ensure their Wix site meets CCPA, ePrivacy, or LGPD cookie consent requirements
Have already signed up for Secure Privacy and need to complete the technical installation
Are looking for a cookie consent solution that actually blocks non-essential cookies before consent is given — not just displays a notice
Prerequisites
Before you start, make sure you have the following:
A Secure Privacy account — sign up at secureprivacy.ai if you haven't already
Your Secure Privacy installation script (available from the onboarding walkthrough or under Domains → Installation in your dashboard)
A Wix site that is published and connected to a custom domain
Admin access to your Wix dashboard
Add the Secure Privacy Cookie Consent Script to Your Wix Site
Follow the seven steps below to install Secure Privacy on Wix using the platform's Custom Code feature. The entire process takes under five minutes and requires no coding experience.
Step 1 — Get Your Secure Privacy Installation Script
Obtain your unique Secure Privacy installation script from the Secure Privacy onboarding walkthrough, or log in to your Secure Privacy account and navigate to Domains → Installation. Every domain has its own unique script — make sure you're using the one generated for your Wix site's domain.
Step 2 — Copy the Script to Your Clipboard
Copy the Secure Privacy script in full and save it to your clipboard. Do not modify the script — altering any part of it can prevent the cookie consent banner from loading correctly.
Step 3 — Open Custom Code in Your Wix Dashboard
Log in to your Wix dashboard. In the left-hand menu, go to Settings → Custom Code. This section lets you inject scripts directly into your site's HTML — it is the standard method for adding any third-party cookie consent tool to a Wix site.
Step 4 — Add a New Code Snippet in the Head Section
Under the Head section, click "Add Code." The Secure Privacy script must be placed in the <head> so it loads before any other scripts on the page — this is what enables it to block non-essential cookies before they fire.

Navigate to Settings → Custom Code, then click "Add Code" under the Head section.
Step 5 — Paste the Secure Privacy Script
Paste your Secure Privacy script into the code field. Configure the remaining name and placement options as shown in the screenshot below — keep the placement set to Head and apply it to All Pages so the cookie consent banner appears site-wide.

Paste the script into the code field and apply the recommended settings shown above.
Step 6 — Set Code Type to "Essential"
On the Code Type tab, leave the selection as "Essential" (the default). This is the correct setting. The Secure Privacy script itself is responsible for blocking all non-essential cookies based on your manual or automatic cookie classification settings — marking it as Essential ensures it always loads so it can manage consent for every other script on your site.
Step 7 — Save and Publish
Click Save to store your Custom Code entry, then republish your Wix site to push the change live. The Secure Privacy cookie consent banner will now appear for all new visitors to your site.
What Happens After Installation
Once the Secure Privacy script is live on your Wix site:
The cookie consent banner appears automatically for new visitors, giving them the option to accept, reject, or customise their cookie preferences.
Non-essential cookies and tracking scripts are blocked until a visitor gives their consent — satisfying the core GDPR and ePrivacy requirement for prior consent.
Consent records are logged in your Secure Privacy dashboard, giving you an auditable record for regulatory purposes.
Returning visitors who have already consented will not see the banner again unless they clear their cookies or your cookie policy changes.
To verify the installation, open your Wix site in a private/incognito browser window. The Secure Privacy consent banner should appear within a few seconds of the page loading.
Troubleshooting: Cookie Banner Not Showing on Wix
The banner does not appear after installation
Make sure you republished your Wix site after saving the Custom Code entry — changes to Custom Code do not go live until the site is published. Also check that the script placement is set to Head and applies to All Pages.
The Custom Code option is greyed out or unavailable
Wix Custom Code requires a published site with a connected custom domain. If your site is on a free Wix subdomain (e.g. yourname.wixsite.com/site), you will need to connect a custom domain before Custom Code becomes available.
The banner appears but cookies are not being blocked
Verify that your cookies and third-party services have been correctly classified in your Secure Privacy dashboard. Services marked as "Essential" will not be blocked — review your classification settings to ensure analytics, advertising, and other non-essential scripts are categorised correctly.
Frequently Asked Questions
Does my Wix website need a cookie consent banner?
Yes, in most cases. If your Wix site uses any cookies or tracking technologies — including Google Analytics, Meta Pixel, or Wix's own analytics — and you have visitors from the EU, UK, California, or many other jurisdictions, you are legally required to obtain informed consent before setting non-essential cookies. Failure to comply can result in significant regulatory fines.
Is the built-in Wix cookie banner GDPR compliant?
Wix's native cookie banner can display a notice to visitors, but it has limited functionality for actually blocking non-essential cookies before consent is given — a hard requirement under GDPR. A dedicated consent management platform like Secure Privacy provides proper prior blocking, granular consent categories, consent logging, and automatic cookie scanning.
Does Secure Privacy work with Wix?
Yes. Secure Privacy installs on any Wix site that has a connected custom domain by adding a single script via Wix's Custom Code feature (Settings → Custom Code). No Wix app or plugin is required — the script handles cookie scanning, blocking, and the consent banner automatically.
Will adding Secure Privacy slow down my Wix site?
The Secure Privacy script is lightweight and loads asynchronously. Because it blocks other non-essential scripts until consent is granted, it can actually improve initial page load performance for visitors who have not yet consented, since those third-party scripts are held back until after the visitor interacts with the banner.
Why should the Secure Privacy script be set to "Essential" in Wix?
Setting the script as "Essential" tells Wix not to block it under any circumstance. This is necessary because the Secure Privacy script is itself the consent manager — it needs to load first, before all other scripts, so it can block non-essential cookies until the visitor consents. If it were categorised as non-essential, it could be blocked by other tools before it has a chance to run.
Does Secure Privacy support CCPA compliance for Wix sites?
Yes. Secure Privacy supports multiple privacy regulations including GDPR, CCPA/CPRA, ePrivacy, LGPD, and others. You can configure region-based consent rules in your Secure Privacy dashboard so visitors from California, the EU, and other jurisdictions see the appropriate consent experience.
The Secure Privacy cookie consent script is now configured on your Wix website. If you run into any issues or have questions about your setup, contact the Secure Privacy support team by emailing [email protected].