Add the selector to a Wix site
Tested by us on a real site, last checked 2026-08-04.
Where the snippet goes
- In your Wix dashboard, open Settings, then Custom Code, under Advanced.
- Click Add Custom Code, top right.
- In the Add Custom Code dialog, paste the snippet into the field labelled Paste the code snippet here.
- Under Add Code to Pages, choose All pages, and in the dropdown below it choose Load code once.
- Under Place Code in, choose Head.
- Give it a name so you can find it later, then click Apply.
- Publish your site. Custom code does not run until you publish, and this step is the one people miss.
Copy the snippet from Settings, then Selector, in your project.
The trap on Wix
Do not use an HTML embed element on a page. Wix renders those inside a frame of their own, which is a separate document from your page, so a snippet pasted into one can only ever see that little box and never your real page. The site-level custom code setting above is the one that works.
The same thing rules out putting the selector inside your menu. Try the picker first (Settings, then Selector, pick a position, and open your menu inside the picker before clicking the spot you want). If the position does not hold, put the selector in your header or footer, or use a floating selector, which needs no position at all.
Custom code needs a premium plan and a connected domain. It is not available on free Wix sites.
How to know it worked
Open your published site and view the page source, then search for ut/v1.js. One
match means the snippet is live.
The check on the Selector settings screen turns green on its own, but give it a couple of minutes after publishing. Wix takes a moment to push a published change out, so a red check straight after clicking Publish means "not yet", not "it failed".