TermsBox
PricingBlog
LoginGet Started
PricingBlogLogin
Get Started
  1. Home
  2. Install guides
  3. Wix

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

  1. A TermsBox account with a site already created.
  2. 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.
  3. 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

  1. Log in to your Wix account and open your site.
  2. In the left sidebar of the Wix dashboard, click Settings.
  3. Scroll down and click Custom Code (it is under the "Advanced" area).
  4. Click + Add Custom Code in the top right.
  5. Paste your TermsBox snippet into the large code box.
  6. Under Add Code to Pages, choose All pages. This makes the banner show on your whole site.
  7. Under Place Code in, choose Head. This is important. The banner must load from the head so it can block trackers before they run.
  8. Give the code a name you will recognize, for example "TermsBox Consent Banner".
  9. Click Apply.
  10. 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

  1. Open your live website in a normal browser tab (not the Wix editor).
  2. Reload the page. You should see the cookie consent banner appear.
  3. 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-id part 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 async or defer to 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.

View install guides for all platforms
TermsBox

Scan your website, auto-generate legal documents, add a consent banner, and stay compliant. One platform for everything.

Product

  • Cookie Scanner
  • Consent Banner
  • Cookie Policy Generator
  • Pricing

Generators

  • Privacy Policy Generator
  • Terms and Conditions Generator
  • EULA Generator
  • Disclaimer Generator
  • Return and Refund Policy Generator

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
GDPR
ePrivacy
CCPA
LGPD
Google Consent Mode v2
IAB TCF 2.2
© 2026 TermsBox. All rights reserved.