On every plan, including Free

Framer

Feedback on your Framer site.

Paste one script tag into Custom Code in your Framer site settings and publish. Surveys are set up in UserLoop, not on the canvas, so there is no component to place and no override to write.

Read the docs
No code component. No npm package. Sets no cookies.
5ways to appear
13 KBat the end of the head, gzipped
6triggers

How do I add a survey to a Framer site?

In UserLoop, choose Framer under Your site is built with and copy the script tag. In Framer, open Site Settings, then General, then Custom Code, and paste the tag into End of <head> tag. Save, then publish the site, because the code runs on the published site. Open a page and UserLoop marks the survey Live. You do not need a code component or an override.

Where it goes
Site Settings, General, Custom Code
Which box
End of <head> tag
Then
Save and publish the site
Plans
Free, Unlimited and Plus

Install

Three steps in Framer

In UserLoop, open the survey's Launch stage, set Your site is built with to Framer and copy the code. Then:

  1. 01

    Open Custom Code

    In Framer, open Site Settings, then General, then Custom Code.

  2. 02

    Paste at the end of the head

    Paste the script tag into the box named End of <head> tag. It applies to every page of the site.

  3. 03

    Save, then publish

    Save and publish the site. Open the published address, and UserLoop shows Live with the address it was installed on.

The snippet

What goes in Custom Code

This one tag is the whole install. Everything else on this page is optional.

Site Settings → General → Custom Code → End of <head> tag
<script async src="https://cdn.userloop.io/sdk-3/userloop.js" data-site-key="YOUR_SITE_KEY"></script>
The code runs on the published site. Publish, then check there.

On Framer

For sites that are designed, not coded

Framer sites are often landing pages with campaigns behind them. These are the parts of UserLoop that fit that.

Campaigns

Ask each campaign's visitors their own question

A landing page gets visitors from ads, newsletters and search, and they are not there for the same reason. UserLoop reads the campaign values on the address and the site a visitor came from.

  • Match a campaign. Add rules on utm_source, utm_medium, utm_campaign and the other UTM values, so a survey shows only to visitors from one campaign.

  • Came from. Show a survey to visitors who arrived from a site you name, such as a search engine or a partner.

  • Share of visitors. Ask a percentage of the visitors who qualify, so a busy launch page is not asking everyone.

Buttons

Open a survey from a button, by its text

The On a click trigger matches an element by a CSS selector or by the words on it. On Framer, use the words. An override is there if you want your own event instead.

  • By text. Type the button's label, such as Book a demo, and the survey opens when a visitor clicks it. The button stays an ordinary Framer button.

  • Your own event. Framer sites are React underneath, and UserLoop has no React component to install. A small override calls userloop.track for a survey whose trigger is On an event.

  • Page changes. Framer moves between pages without a reload. The snippet watches the address and checks each survey's rules again.

Every SDK method
Targeting → When → On a click

The element clicked   (leave empty)
Or its text           Book a demo

Framer writes its own class names when it publishes, so match
the button by the words on it and the rule survives a redesign.
Most Framer sites never need the override. Time, scroll, exit and click triggers take no code at all.

Checked for you

Know the published site has it

Framer shows you the canvas and a preview. Visitors see the published site, and that is where UserLoop looks.

  • Publish, then open a page. The code runs on the published site, so the install only counts once a published page has loaded.

  • Check installation. UserLoop shows Live and the address it saw, or Needs setup if it has not seen the snippet yet.

  • More than one address. If the site answers on a Framer address and your own domain, list the ones where surveys should show.

Platform facts

UserLoop on Framer, in one table

Where the code goes
Site Settings, then General, then Custom Code, in End of <head> tag. Then save and publish the site
Component or plugin
None. No code component, no override and no npm package is needed
Framer plan
A Framer plan that lets you add custom code to the site. UserLoop's side is on every plan, including Free
CMS pages
Targeted by address, such as every page that starts with /blog/
Page changes without reload
Detected from the History API. Page rules and timers follow each new address
Canvas and preview
The code runs on the published site
Design
4 themes, your colors and logo, light, dark or auto. Custom CSS is not supported
Page weight
13 KB gzipped on every page, loaded asynchronously. A further 24 KB only when a survey shows
Consent
Sets no cookies. State is kept in the browser's local storage

Once it is in

What to ask first on a Framer site

Launch pages and product sites tend to start with one of these.

Frequently asked questions

Is there a UserLoop plugin or component for Framer?

No. UserLoop is added with one script tag in Site Settings, General, Custom Code. There is no Framer plugin, code component or npm package, and none is needed.

Does it need a paid Framer plan?

Framer decides which plans can add custom code to a site, so check that Custom Code is available in your Site Settings. On UserLoop's side, website surveys are on every plan, including Free.

Why does the survey not show on the canvas or in preview?

The code runs on the published site. Publish, open a page at its published address, then select Check installation in UserLoop.

Can a Framer button open a survey?

Yes. Set the survey's trigger to On a click and type the button's text. For anything a click cannot describe, a small code override can call userloop.track with an event name.

Can I show a survey only to visitors from one campaign?

Yes. On the Targeting stage, match a campaign on utm_source, utm_medium, utm_campaign, utm_content, utm_term, or on the site the visitor came from.

Will the survey match my Framer design?

You choose one of 4 themes, your colors and logo, and light, dark or auto. Custom CSS is not supported: the survey is drawn in its own shadow root, so your site's styles do not reach it.

Will it slow my Framer site down?

The loader is 13 KB gzipped and loads asynchronously. The code that draws a survey is a further 24 KB and is fetched only when a survey is about to show.

Is it free?

Website surveys are on every plan, including Free. Free allows 1 live survey with 3 questions and 50 responses a month. Unlimited is $19 a month with unlimited responses.

Keep reading

Publish your Framer site with a question on it

Start on the Free plan: 1 live survey, 3 questions and 50 responses a month.