How to add a survey to a Framer site: custom code at the end of body
Framer sites are quick to launch, and the first visitors are the ones worth asking. Add one script under Custom Code, publish, and a short question shows on the live site, at the moment you choose.
The Tack team··4 min read
Short answer
To add a survey to a Framer site, add the site in Tack with its published address, then in Framer open the site settings, go to Custom Code, add a script and place Tack’s snippet at the End of <body> tag. Publish and open the live site once; Tack confirms the install by itself.
Framer does not run custom code on the canvas, so you check it on the published site. Afterwards you create a Pin in Tack, a short question for real visitors, for example “What did you come to do today?” after someone has looked at two pages.
On this page
Step 1: add the site in Tack under its live address
In Tack go to Settings → Sites and install, add a site and choose Framer. You get the snippet with your site’s key and the steps for Framer. Tack keeps only the domain of the address you enter.
When you publish, Framer gives the site a framer.app address (Framer Help). Connecting your own domain needs a paid Framer plan (Framer pricing, as of November 2026). For Tack these are two sites, each with its own key, and so are www. and the bare domain. Enter the address your visitors end up on.
Start with the framer.app address if that is all you have. When you connect a domain, Tack sees the snippet load there and offers Use this address, which moves the site with its Tests and Pins.
Step 2: add the snippet under Custom Code
Copy the snippet from Tack. It has this shape, with your key instead of the dots:
<script src="https://trytack.io/r/v1.js" data-site="pk_…" async></script>- Open the site settings and the Custom Code tab. Framer’s help currently calls them Project Settings (Framer Help).
- Click Add Script and name it, for example “Tack”.
- Choose End of <body> tag as the placement. Framer also offers the start and end of
<head>and the start of<body>(Framer Academy); end of body is what Tack’s wizard uses. - Paste the snippet and leave it on all pages.
Do not limit the script to a few pages: a Pin can only show where the snippet runs. Framer also asks how often the code runs, once or on every page visit. Either works here, since the snippet starts only once per page and follows moves between pages by itself.
Step 3: publish and open the live site
Framer does not load custom code in the canvas preview, so publish the site and open the live page in a browser (Framer Academy). On a plan with staging, make sure the version with the script is deployed to the domain you added in Tack, not only to the staging address (Framer Help).
Once the live page loads the snippet, the site in Tack shows Installed without you pressing anything. If it stays on Not verified, use Check the install: it looks at the page and says what is missing.
Your first Pin: why people came, and whether it worked
A Framer site is often a landing page for a new product or a portfolio, and you do not yet know what brings people in. The template Why did you come, and is it working? asks two quick questions:
- What did you come to do today? Two reasons you fill in, such as “Find out what it does” and “Compare prices”, plus their own answer.
- Is it working out? Yes / Not yet / I gave up.
It shows after the second page of a visit or after a minute on a page, to 15% of visitors, and asks the same person again after 30 days at the earliest. A few dozen answers tell you whether the page speaks to the people who actually come. Once you add a pricing page, Why are you not continuing? fits there.
If Tack does not see the snippet
- Not published yet. Saving in Custom Code changes nothing on the live site until you publish.
- Another address. If Tack says the snippet runs on another address, it is usually framer.app against your domain. Switch with Use this address when the new one is right.
- Only on some pages. If you picked pages for the script, it is missing everywhere else.
- Custom headers. If you send a Content Security Policy for the site, allow
https://trytack.ioinscript-src,connect-srcandfont-src. - Consent. Pins show without consent and then keep no visitor ID across visits. A Pin with Show only after consent waits until your cookie banner calls
window.tack?.consent()when the visitor agrees.
Test the page before you send traffic to it
The snippet you just added also runs Tests. Before a launch, send five people a link to the framer.app version: the Landing page check shows them the page for ten seconds, asks what they think you offer and has them find the price. Tack checks whether they reached the page, asks how hard it was and shows where they clicked. No recording of the screen, only clicks and scrolling.
FAQ
How do I add a survey to my Framer site?
Add the site in Tack with its published address and copy the snippet. In Framer open the site settings, go to Custom Code, add a script at the End of <body> tag, paste the snippet and publish. Open the live site once and Tack verifies the install.
Why does my custom code not run in the Framer editor?
Framer does not load custom code in the canvas preview. Publish the site and check the live page in a browser.
Should the script run once or on every page visit?
Either works. The Tack snippet starts only once per page and notices moves between pages by itself.
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.