<head> of every page through your site settings.
Custom code needs a paid Webflow Site plan, or a paid Workspace plan. It doesn’t run on the free Starter plan.
async, defer or type="module": pagent needs to load before your page shows, so visitors never see the original flash.
Add the snippet to your head code
1
Open the custom code settings
Open Site settings and go to the Custom code tab.
2
Paste the snippet
Paste your snippet into Head code.
3
Save
Click Save.
4
Publish
Publish your site. The snippet is live only after you publish.
Check it worked
- Open your site in a private browser window, so no cached version shows.
- Back in pagent, click Check connection in the install step. If you’ve finished setup already, open Settings → Setup: it shows You are ready once pagent has received visits from your site.
- pagent loads your live site and looks for the snippet. When it finds it, you can start your first test.