Skip to main content

Wix

Wix has no OptSens-specific plugin. Add the OptSens snippet through Wix's custom code settings, which lets you place it in the page <head> across your site. Custom code requires a Wix premium plan with a connected domain.

Get your snippet

Your snippet, with your Domain ID already filled in, is on the Integration page in the dashboard, and in the Integration step of the guided onboarding. It looks like this:

<script src="https://cdn.optsens.com/optsens.min.js/YOUR_DOMAIN_ID"></script>

Add the snippet

  1. In your Wix dashboard, open Settings, then Custom code in the Advanced section.
  2. Add new custom code and paste the snippet.
  3. Set it to load on All pages, with the Load code once option.
  4. Set the placement to Head.
  5. Apply the code.

The script must load first-party in <head>, before any Google or marketing tags. Consent defaults are then set before anything else runs.

Choose the Head placement, not the body

Wix offers head and body placements. Body placements load the CMP after the trackers it manages.

After installing

  1. Open your site in a private window. The banner shows on first visit.
  2. Run the implementation check. During first-time setup it runs as the onboarding Verify step, and you can run it at any time from the dashboard Integration page.
  3. Work through Verify installation.

If the banner does not show, confirm the code is set to all pages and the head placement, then see Install troubleshooting.