Install the TermsBox Cookie Consent Banner on Wix
This guide shows you how to add the TermsBox consent banner to a Wix website. It takes about 5 minutes.
What you need
- A TermsBox account with a site already created.
- Your install snippet. You get it from the TermsBox dashboard:
- Log in to TermsBox.
- Go to Consent Banner in the left menu.
- Open the Install tab.
- Copy the snippet shown there. It already has your site id filled in.
- A Wix Premium plan. Wix only allows custom code (the step below) on paid Premium plans. On a free Wix plan the Custom Code menu is not available.
Your snippet looks like this, but with your own site id in place of YOUR_SITE_KEY:
<script src="https://termsbox.com/cmp/termsbox-cmp.js" data-site-id="YOUR_SITE_KEY" data-auto-block="on"></script>Tip: always copy the snippet from your dashboard rather than typing it by hand. That way your real site id is included and correct.
Step by step
- Log in to your Wix account and open your site.
- In the left sidebar of the Wix dashboard, click Settings.
- Scroll down and click Custom Code (it is under the "Advanced" area).
- Click + Add Custom Code in the top right.
- Paste your TermsBox snippet into the large code box.
- Under Add Code to Pages, choose All pages. This makes the banner show on your whole site.
- Under Place Code in, choose Head. This is important. The banner must load from the head so it can block trackers before they run.
- Give the code a name you will recognize, for example "TermsBox Consent Banner".
- Click Apply.
- Publish your site if it is not already live. Custom code only runs on the published version.
That is it. The banner is now installed on every page.
Verify it works
- Open your live website in a normal browser tab (not the Wix editor).
- Reload the page. You should see the cookie consent banner appear.
- Go back to TermsBox, open Consent Banner > Install, and click Verify Installation. TermsBox will visit your site's main URL and confirm the snippet is present. When it succeeds you will see a "Verified" status.
Troubleshooting
I don't see the Custom Code option in Wix. Custom Code requires a Wix Premium plan. Upgrade your Wix plan, then try again.
The banner does not appear.
- Make sure you published your Wix site after adding the code. Changes only go live on the published site.
- Check that you set the code to All pages and Head, not Body.
- Make sure you pasted the whole snippet, including the site id. If the
data-site-idpart is missing or empty, the banner will not work and you will not see an error.
"Verify Installation" says the script was not found.
- Confirm your site is published and publicly reachable (not password protected).
- Wait a minute after publishing, then click Verify again. Wix can take a short time to update the live site.
- Make sure you did not add
asyncordeferto the snippet. The tag must stay exactly as copied so it runs at the right time.
Do not change the snippet.
Paste it exactly as copied. Do not add async or defer, and do not move it to the body. The banner needs to load in the head, before your other scripts, to block trackers correctly.