On every plan, including Free
Squarespace
A survey on your Squarespace site.
Paste one script tag into Code Injection, in the Header box, and save. Squarespace offers Code Injection on its Business plan or higher, and there is a route without code if you are not on one.
Read the docsHow do I add a survey to a Squarespace site?
In UserLoop, choose Squarespace under Your site is built with and copy the script tag. In Squarespace, open Settings, then Advanced, then Code Injection, paste the tag into Header and save. Code Injection needs a Squarespace Business plan or higher. Open any page of your site and UserLoop marks the survey Live. The same tag then shows every website survey you publish, on the pages you choose.
- Where it goes
- Settings, Advanced, Code Injection, Header
- Squarespace plan
- Business plan or higher
- Without code
- A link survey, on any plan
- UserLoop plans
- Free, Unlimited and Plus
Install
Three steps in Squarespace
In UserLoop, open the survey's Launch stage, set Your site is built with to Squarespace and copy the code. Then:
01
Open Code Injection
In Squarespace, open Settings, then Advanced, then Code Injection.
02
Paste it into Header
Paste the script tag into the Header box. Header code is added to the pages of your site, so one paste is enough.
03
Save, then open your site
Save. Code Injection needs a Squarespace Business plan or higher. Open any page and UserLoop shows Live with the address it saw.
The snippet
What goes in the Header box
The first tab is the install. The second is only for a survey that sits inside a page instead of over it.
<script async src="https://cdn.userloop.io/sdk-3/userloop.js" data-site-key="YOUR_SITE_KEY"></script><!-- In a Code block, where the survey should sit on the page -->
<div id="feedback"></div>
<!-- Then in UserLoop: Design → Widget → Inside a page
Where on the page: #feedback -->On Squarespace
Plans, pages and placement
What to check before you start, and what you can do once the tag is in.
The plan question
Check your Squarespace plan before anything else
The only requirement on Squarespace's side is Code Injection, which Squarespace keeps for its Business plan or higher. UserLoop's side has no such requirement.
On Business or higher. Paste the tag into Header, save, and UserLoop confirms the install from a real page load.
On a lower plan. Use a link survey. UserLoop hosts it at its own address with a QR code, so it can sit behind any button or in any email, with no code on your site.
Either way. Answers from website and link surveys arrive in the same account.
Pages
Choose the pages by their address
A Squarespace site is a set of pages and collections, each with its own address. UserLoop's page rules work on those addresses, so you never edit a page to add or remove a survey.
One page. A Show on rule that is /contact shows the survey there and nowhere else.
A whole collection. Starts with /blog/ covers every post. For a store, copy the part of the address every product page shares.
Test a page. Type an address on the Targeting stage and UserLoop says whether the survey would show there.
Placement
Over the page, on its edge or inside it
The hero above shows an exit survey. That is one of several ways a survey can appear on a Squarespace page.
Inside a page. Add a Code block with an empty element, give it an ID, and name that ID under Where on the page.
Feedback button. A tab on the side of the page that visitors open when they have something to say.
Your look. Choose a theme, your colors and logo, and light, dark or auto. The survey is drawn apart from your template's styles.
Platform facts
UserLoop on Squarespace, in one table
- Where the code goes
- Settings, then Advanced, then Code Injection, in Header. Then save
- Squarespace plan
- Business plan or higher, which is where Squarespace offers Code Injection
- UserLoop plan
- Every plan, including Free
- Squarespace extension
- None. There is nothing to install or connect
- Squarespace Commerce
- Works on the store pages header code reaches, targeted by address. Answers are not joined to Squarespace orders
- Without Code Injection
- A link survey with a QR code, hosted by UserLoop
- 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 Squarespace site
Portfolios, studios and small stores tend to start here.
Frequently asked questions
Can I add a popup survey to a Squarespace site?
Yes. Paste UserLoop's script tag into Settings, Advanced, Code Injection, in the Header box. Surveys can then appear as a popup, a slide-in, a modal, a feedback button or inside a page.
Which Squarespace plan do I need?
Code Injection needs a Squarespace Business plan or higher. That is Squarespace's requirement, not UserLoop's: website surveys are on every UserLoop plan, including Free.
What if my Squarespace plan has no Code Injection?
Use a link survey. UserLoop hosts the survey at its own address and gives you a QR code, so you can link to it from a button, a page or an email without adding any code to your site.
Is there a UserLoop extension for Squarespace?
No. UserLoop is added with one script tag in Code Injection. There is no extension to install and nothing to connect.
Does it work with Squarespace Commerce?
The snippet runs on the store pages that header code reaches, and you target them by address. Answers are not joined to Squarespace orders: that link exists for Shopify only.
Can I show a survey on one page only?
Yes. On the survey's Targeting stage, add a Show on rule with that page's address, such as /contact. With no Show on rule, the survey shows on every page.
Will the survey match my Squarespace template?
You choose one of 4 themes, your colors and logo, and light, dark or auto. The survey is drawn in its own shadow root, so your template's styles do not reach it. Custom CSS is not supported.
Will it slow my 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?
On UserLoop's side, yes to start. Free allows 1 live survey with 3 questions and 50 responses a month. Unlimited is $19 a month with unlimited responses.
Keep reading
Paste one tag into Code Injection and ask your first question
Start on the Free plan: 1 live survey, 3 questions and 50 responses a month.