On every plan, including Free

Webflow

Surveys for any Webflow site.

Paste one script tag into Head code in your Webflow site settings and publish. From then on you write, target and change surveys in UserLoop, without opening the Designer again.

Read the docs
No Webflow app to install. Sets no cookies.
13 KBin Head code, gzipped
24 KBmore, only when a survey shows
5ways to appear

How do I add a survey to a Webflow site?

Create a website survey in UserLoop, choose Webflow under Your site is built with, and copy the script tag. In Webflow, open Site settings, then Custom code, and paste the tag into Head code. Save, then publish the site, because custom code runs only on the published site. Open a page and UserLoop marks the survey Live. Aim it at CMS or Ecommerce pages by their address.

Where it goes
Site settings, Custom code, Head code
Then
Save and publish the site
CMS and Ecommerce
Targeted by page address
Plans
Free, Unlimited and Plus

Install

Three steps in Webflow

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

  1. 01

    Open Custom code

    In Webflow, open Site settings, then Custom code. This is the site-wide code, not the custom code of a single page.

  2. 02

    Paste it into Head code

    Paste the script tag into Head code. It loads asynchronously, so it does not hold up the rest of the head.

  3. 03

    Save, then publish

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

The snippet

What goes in Head code

One tag covers every page, every CMS item and every page you add later.

Site settings → Custom code → Head code
<script async src="https://cdn.userloop.io/sdk-3/userloop.js" data-site-key="YOUR_SITE_KEY"></script>
Custom code does not run in the Designer. Publish, then check on the published site.

On Webflow

Built around how a Webflow site is put together

Collections, classes and a staging address are all things UserLoop can use.

CMS and Ecommerce

Aim at a collection, a product or one page

Webflow gives every CMS item an address under its collection, so one page rule covers the whole collection, including items you publish next month.

  • Collections. Starts with /blog/ shows a survey on every post. Don't show on takes single pages back out.

  • Store pages. On Webflow Ecommerce, rules on /product/ and /order-confirmation put a question on products or after checkout. Answers are not joined to the Webflow order.

  • Test a page. Type any address on the Targeting stage and UserLoop says whether the survey would show there, and which rule decides it.

Page rules
Targeting → Where → Show on

starts with   /blog/                 every item in the Blog collection
is            /pricing               one static page
starts with   /product/              every Webflow Ecommerce product
is            /order-confirmation    the page after checkout

Don't show on

starts with   /legal/                never here, whatever matches above
Rules are set in UserLoop and reach the site within 2 minutes of publishing the survey. The Webflow site is not republished.

In the layout

Use the IDs and classes you already have

A survey does not have to float over the page. Webflow's own element settings give UserLoop something to hold on to.

  • Inside a page. Give a Div block an ID such as feedback, then type #feedback under Where on the page. The survey is drawn in that spot.

  • On a click. Name a class, such as .pricing-button, or the button's text, and the survey opens when a visitor clicks it.

  • Feedback button. A tab on the side of the page that is always there, with no trigger to set.

All five ways to appear

Staging and live

Decide whether staging shows surveys

A Webflow site publishes to a webflow.io address and to your own domain. UserLoop treats them as two addresses, and you choose which ones count.

  • List your domain. Once an address is listed, surveys show only on the addresses you have listed.

  • Add staging to test. Add the webflow.io address while you try things out, and remove it when you are done.

  • Up to 20 addresses. Start one with *. to include every subdomain.

Your site's addresses
Settings → Website → Your site's addresses

example.com              your live domain
www.example.com          add it too if the site answers on www
example.webflow.io       optional, to test on the staging address

*.example.com            every subdomain, in one line
Until you list an address, surveys show wherever the snippet runs.

Platform facts

UserLoop on Webflow, in one table

Where the code goes
Site settings, then Custom code, in Head code. Then save and publish the site
Webflow app
None. There is nothing to install from the Webflow Marketplace
Webflow plan
A Webflow plan that lets you add site-wide custom code and publish. UserLoop's side is on every plan, including Free
Webflow CMS
Collection pages are targeted by address, such as every page that starts with /blog/
Webflow Ecommerce
Works on product, category and order confirmation pages. Answers are not joined to Webflow orders
Designer and preview
Custom code runs on the published site only
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 Webflow site

Most Webflow sites are marketing sites, so these are questions about the visit itself.

Frequently asked questions

Is there a UserLoop app for Webflow?

No. UserLoop is added with one script tag in Site settings, Custom code, Head code. There is no Webflow app or component to install.

Does it need a paid Webflow plan?

Webflow decides which plans can add site-wide custom code and publish, 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 in the Webflow Designer?

Custom code runs only on the published site. Publish, open a published page, then select Check installation in UserLoop. It shows Live once a page with the snippet has loaded.

Can I show a survey on one CMS collection only?

Yes. Add a Show on rule that starts with the collection's address, such as /blog/. It covers every item in the collection, including ones you add later, and Don't show on removes single pages.

Does it work with Webflow Ecommerce?

Yes. The snippet runs on store pages and you target products or the order confirmation page by address. Answers are not joined to Webflow orders: that link exists for Shopify only.

Can I put the snippet on one page instead of the whole site?

It is designed to go in once, site wide. Use page rules in UserLoop to decide where a survey shows, so changing your mind later does not need another Webflow publish.

Will it slow my Webflow 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 Webflow site once more, with a survey on it

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