Add the selector to a Webflow site
Tested by us on a real site, last checked 2026-08-04.
Where the snippet goes
- Open your site, then Site settings.
- Open the Custom code tab.
- Paste the snippet into the Head code section, which applies to your entire site.
- Click Save changes.
- Click Publish, check the domains you want, then click Publish to selected domains. Custom code shows up in preview mode but does not go live until you publish, and this step is the one people miss.
Copy the snippet from Settings, then Selector, in your project.
Custom code needs a Core, Growth, Agency, or Freelancer Workspace, or an active Site plan on the site. It is not available otherwise.
The trap on Webflow
The publish dialog lists your domains as separate checkboxes: the Webflow staging
subdomain (yoursite.webflow.io) and your custom domain. Publishing with only the
staging subdomain checked leaves your live site exactly as it was, with no warning and
no error. Everything looks done, the snippet is saved, and the live site still has
nothing in it. Check your custom domain before clicking Publish to selected domains.
Two smaller ones. Code pasted under Page settings applies to that one page only, so site-wide belongs in Site settings as above. And code saved but not published shows its effect in preview and comment modes, which makes preview a poor test of whether the live site is done.
Putting it somewhere specific
Try the picker first: open 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, place it by hand instead. Add a Code Embed element from the Add panel at the exact spot you want, and paste the placement element from the Selector settings screen into it. That is exact and cannot drift.
One caution if you put it inside a menu. A menu whose markup is only built when it opens is not in the page Webflow serves, so the selector will not be there either. Check the served page source before any JavaScript runs, not the DOM with the menu open.
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. A red check straight after you click Publish to selected domains means "not yet", not "it failed".