There are three ways to install CookieScript on Wix:
By using the CookieScript Cookie Consent app (recommended)
By adding the code with Custom code
By using Google Tag Manager (GTM)
We recommend using the app: you don't need to edit any code, and you can set up Google Consent Mode right from your site dashboard.
Note: Use only one method to install CookieScript. If you switch from one method to another, remove the previous code first.
Method 1: Installing CookieScript via the Wix app
Open the CookieScript Cookie Consent app in the Wix App Market and click Add to Site:

Select your site and approve the permissions the app needs.
In your CookieScript account, open your banner and go to Install.
Configure geo-targeting (if needed).
Select Shopify and click Copy code. This tab shows only your banner's source link (it starts with https://cdn.cookie-script.com/s/), which is what the Wix app needs:

In your Wix site dashboard, go to Apps > CookieScript. Paste the source link into the CookieScript source link field and click Save banner settings:

Optional: to use Google Consent Mode, select Enable Google Consent Mode, choose the default state for each consent type, and click Save settings. To apply different defaults to visitors from specific regions (for example, EEA, GB or US-CA), click Add new region:

All done! The banner status changes to Active. The banner is hidden in the Wix editor and in previews, so check it on your published site.
To stop showing the banner, click Remove banner in the app.
Method 2: Installing CookieScript with Custom code
To add custom code to a Wix site, you need a Premium plan and a connected domain.
In your CookieScript account, open your banner and go to Install.
Configure geo-targeting (if needed).
Select Script tag and click Copy code:

In your Wix site dashboard, go to Settings and click Custom code under Development & integrations:

Click + Add Custom Code.
Paste the copied code, give it a name (for example, CookieScript), and select All pages and Load code once:

Under Place Code in, select Head and click Apply:

Note: Wix marks custom code as Essential by default, so it loads without visitor consent. Keep this setting for CookieScript: the banner has to load before the visitor makes a choice.
Method 3: Installing CookieScript via Google Tag Manager (GTM)
This method assumes that you already have a GTM account and a website container, and that CookieScript is set up in GTM. If not, see Google's guide to setting up GTM.
In your Wix site dashboard, go to Settings and click Marketing Integrations under Development & integrations.
Find Google Tag Manager and click Connect.
Enter your GTM container ID and save.
Note: If the banner doesn't appear after installation, check whether a caching app or browser extension is preventing it from showing.
