How to add a survey to a Webflow site: one script in Footer code
One script in Webflow’s Footer code lets you ask visitors a short question on any page of the site, and run usability tests on the same site. Here is where it goes, what to publish, and what to ask first.
The Tack team··4 min read
Short answer
To add a survey to a Webflow site, add the site in Tack with its published address. Then in Webflow open Site settings → Custom code, paste Tack’s snippet into Footer code and save. Publish the site and open it once: Tack confirms the install by itself.
Custom code needs a paid Webflow site plan; the free Starter plan does not include it (as of November 2026). Once the snippet runs, you create a Pin in Tack: a short question that shows on the pages and at the moment you pick, for example on the pricing page when someone is about to leave.
On this page
Step 1: add the site in Tack with the address visitors see
In Tack open Settings → Sites and install, add a site and pick Webflow as the platform. The wizard shows your snippet and the steps below. Only the domain counts; the path is ignored.
A Webflow site can have two addresses, and Tack treats each as its own site with its own snippet key:
- The free staging address,
yoursite.webflow.io. - Your custom domain once you connect one.
www.example.comandexample.comare two different sites too, so open the live site and copy the address from the browser bar after any redirect.
Webflow puts site-wide custom code on every domain you publish to, but the snippet only works on the address of the Tack site its key belongs to. Before launch use the webflow.io address; when you connect your domain, move the site to it. Tack notices when the snippet runs on another address and offers Use this address; Tests and Pins stay with the site.
Step 2: paste the snippet into Footer code
The snippet looks like this, with your site’s key in place of the dots:
<script src="https://trytack.io/r/v1.js" data-site="pk_…" async></script>- In Webflow open Site settings and go to the Custom code tab.
- Paste the snippet into Footer code. Webflow adds it before the closing
</body>tag on every page. - Save the settings.
Head code would work as well, since the script loads asynchronously, but Footer code is what the wizard uses. Add it once, at site level, not again in a page’s own custom code. Each field takes up to 20,000 characters; the snippet is one short line (Webflow Help, as of November 2026).
Webflow’s price list shows custom code as a feature of the paid site plans, not of Starter (Webflow pricing, as of November 2026). If the Custom code tab offers you a plan instead of the fields, that is why.
Step 3: publish, then open the site once
Saved custom code is not live yet. Click Publish and tick the domain you added in Tack: if you publish only to webflow.io, your custom domain still runs the old version. Webflow University also notes that Preview mode is no reliable check for site-level code; open the published site instead (Webflow University).
Open the published address once. As soon as the page loads the snippet, the site in Tack switches to Installed, with no button to press. If it does not, Check the install looks at the page and tells you what is off, for example a snippet with another site’s key. Someone else manages your Webflow project? Send them a link to the install guide; it works without signing in for 14 days.
Your first Pin: ask on the pricing page what holds people back
Many Webflow sites are marketing sites with a pricing page and a sign-up button. A good first question goes where people decide. The template Why are you not continuing? asks “What is stopping you from continuing?” with four answers (the price, not clear what I get, missing information, just looking around) plus your own, then offers a box for anything else.
- Where: addresses starting with your pricing page, for example
/pricing. - When: on a computer when the cursor heads to close the tab; on a phone after 40 seconds without a click on your main button. Give that button an ID in Webflow’s element settings and use it as the selector.
- How often: half of the visitors, the same person again after 14 days at the earliest.
For a site without a pricing page, Why did you come, and is it working? asks after two pages or a minute on the site. Whatever you run, a visitor sees at most one question per visit across all your Pins.
When the install does not show up
- Not published. Save is not enough; publish to the domain you added in Tack.
- Wrong address. Tack shows “The snippet runs on …, but the site is set to …”. That is usually webflow.io against your own domain, or www against no www. Use the suggested address if it is the one your visitors see.
- Content Security Policy. If a proxy or CDN in front of Webflow sends a CSP header, allow
https://trytack.ioinscript-src,connect-srcandfont-src. - Cookie banner. A Pin shows without consent but keeps no visitor ID across visits. To make a Pin wait, turn on Show only after consent and call
window.tack?.consent()from your banner’s accept callback. If your consent tool blocks unknown scripts until someone accepts, accept on your own visit before you verify. - Installed, but no Pin. Check the Pin’s address and share of visitors. Once it has shown to you, that browser does not see it again for the period set in Do not show again for.
The same snippet runs usability tests
Pins ask real visitors after launch. Tests come before: you send people a link, they do tasks on your Webflow site, and Tack checks success by the page they reach, a click or an event, asks how hard each task was and shows where they clicked. It uses the same snippet, so there is nothing more to install. A redesign on webflow.io is a good candidate for the Landing page check before you publish it to your domain.
FAQ
How do I add a survey to my Webflow site?
Add the site in Tack with its published address and copy the snippet. In Webflow open Site settings → Custom code, paste it into Footer code and save. Publish the site and open it once; Tack verifies the install by itself. Then create a Pin from a template.
Can I add custom code on the free Webflow plan?
No. Webflow lists custom code as a feature of the paid site plans, not of the free Starter plan (as of November 2026). You need a paid site plan for the snippet to run on the published site.
Does the survey work on my webflow.io address?
Yes, if you add the webflow.io address as the site in Tack. Every domain is its own site with its own snippet key, so when you connect your own domain, move the site to it with Use this address.
What does it cost?
One Test or one Pin costs one credit, and a credit is €8, less in bigger packs. No seats, no subscription, no minimum. Credits don’t expire. A new account comes with 1 credit to try it.