---
title: "Add a survey to a page of your theme"
description: "Show a survey inside a page of your Shopify online store. Publish it in UserLoop, choose the page, then add the UserLoop block in your theme editor."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.userloop.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Add a survey to a page of your theme

A theme block puts your survey inside a page of your Shopify online store, such as your home page or product pages, wherever you add it in your theme. Going live takes two steps: publish the survey in UserLoop, then add the UserLoop block to a page in your Shopify theme editor.

This walkthrough starts with a published theme block survey. It adds the block to an unpublished Dawn product template and ends with a customer-view preview.

> **Unlimited plan**
>
> Theme block surveys go live on the Unlimited and Plus plans. On Free you can build one, and it goes live once you upgrade.

## Before you start

- **Your Shopify store is connected.** Check in **Settings → Store**.
- **You can edit your theme in Shopify**, or someone who can is around. You can also send them the steps from UserLoop.
- **Your theme takes app blocks.** Shopify's Online Store 2.0 themes, such as Dawn and Horizon, do. Older themes, such as Debut, don't: the theme editor opens without the block, and its **Apps** tab says "No app blocks available for this section". UserLoop doesn't warn you about this yet. Use a [store popup](https://docs.userloop.io/surveys/store/add-a-store-popup/) instead, or move to a newer theme.

> **One theme block survey at a time**
>
> Only one survey runs as the theme block at a time. If another survey is already live there, publishing this one replaces it and the other goes back to draft. The publish dialog tells you when that will happen.

## Create the survey

1. **Start a new survey**

   In the sidebar, select **New survey**, then choose how to start. These steps follow **Start from scratch**.
2. **Choose where it runs**

   Under **Where should it run?**, choose **Theme block**. Follow the remaining steps, then select **Create survey**.
3. **Add your questions**

   The survey opens in the survey editor, where you add questions in the **Questions** stage.

## Publish it

1. **Open the Launch stage**

   At the top of the survey editor, select **Launch**. The panel shows the two steps under **Place it on your store**: **Publish the survey**, then **Add it in Shopify**.
2. **Publish**

   Select **Publish**. The **Ready to go live?** dialog says **Then add the block to a page of your theme**. Check the summary and select **Publish** again.

   The dialog changes to **Published. Now add it in Shopify**.

## Add it in Shopify

1. **Choose the page**

   Next to **Add it to**, choose the page the survey belongs on: **Home page**, **Product pages**, **Collection pages**, **Pages** or **Cart**. A page that already has the block says **already on this page**.
2. **Open the theme editor**

   Select the button under the menu. It's named for the page you chose, such as **Add to home page** or **Add to product pages**. Your theme editor opens in a new tab on that page, with the UserLoop block added.
3. **Place the block**

   In the theme editor, check the UserLoop survey block is on the page, and move it where you want it.
4. **Save**

   Select **Save** in Shopify. Until you save, nothing changes on your store.
5. **Go back to UserLoop**

   UserLoop checks your store every few seconds for the next five minutes and shows **Waiting for you to save in Shopify…** while it does. To check straight away, select **I've done this**.

Each click of the button adds one more block, so select it only once per page. If the theme editor opens without the block, select **Do it by hand** in UserLoop. The steps are: open your theme editor and go to the page where it belongs, then add the UserLoop survey block to a section and save.

> **Someone else manages your theme?**
>
> Select **Send the steps to a teammate** and enter their email. They get one email with the link and the steps.

## Check it's live

When UserLoop finds the block, the dialog title changes to **Live on your store**. From then on:

- The Launch stage says **On your** and the pages that have the block, with your theme's name, such as **On your home page in Dawn.** Without access to your theme, it says **Showing on your store** with when it was last seen.
- The survey shows **Live** in your list of surveys.

UserLoop finds the block straight away when it can read your theme. When it can't, it waits until your store has shown the survey, which can take up to a minute after you save. While it waits, UserLoop says **Without access to your theme, this can take up to a minute after you save.** and offers **Let UserLoop check your theme**. Select it and approve in Shopify to let UserLoop read your live theme's settings and templates. It never changes, publishes or deletes a theme.

| You see | What to do |
|---|---|
| **The survey block isn't on a page yet.** | Choose a page, select the **Add to** button, and save in Shopify. |
| **The survey block is hidden on your** pages | The block is there but hidden in the theme editor. Show it and save. |
| **The block is on your** page **twice; remove one in the theme editor.** | Remove one of the two blocks in the theme editor and save. |
| **No store connected** | Select **Go to Store** and connect your Shopify store. |

Every other message is in [The survey isn't showing on your store](https://docs.userloop.io/surveys/store/survey-not-showing-on-your-store/).

## Add it to another page

Once the survey is live, the button reads **Open the theme editor**. Open it, go to the other page, add the UserLoop survey block to a section and save. The same survey shows on every page that has the block.

## Turn it off

In the survey editor, open the **More** menu (⋯) and select **Unpublish**, then confirm. Customers stop seeing the survey straight away. UserLoop doesn't change your theme, so the block stays on your pages, ready for your next theme block survey.

## Related

- [Add a store popup](https://docs.userloop.io/surveys/store/add-a-store-popup/)
- [The survey isn't showing on your store](https://docs.userloop.io/surveys/store/survey-not-showing-on-your-store/)
- [Choose where your survey runs](https://docs.userloop.io/surveys/get-started/choose-where-your-survey-runs/)

Source: https://docs.userloop.io/surveys/store/add-a-theme-block/index.mdx
