# Add a survey after a Shopify order

Show a survey after an order on Shopify’s **Thank you** or **Order status** page. Install and open Shopoll first, then add the survey block in Shopify’s checkout editor. Turning on the app in your store theme does not add this block.

## Where the block appears

The Thank you and Order status blocks work on Shopify plans above Starter. Before-payment checkout surveys need Shopify Plus. Add the block to each page where you want it to appear.

| Shopify page | When shoppers see it | Use it for |
| --- | --- | --- |
| Thank you | Immediately after placing an order | Ask what first brought the buyer to your store |
| Order status | When the buyer returns to the order | Resume the survey already associated with that order |

With **Thank you and Order status**, a shopper can start on one page and resume the same survey on the other. Choose **Order status only** to reach shoppers when they revisit an order, including their first purchase. To target people who have placed more than one order, choose **Returning buyers** under **Buyer audience** when [creating the survey](/docs/surveys/choosing-a-template.md). Shopoll links both visits to the same response once it receives the order details from Shopify.

For a survey before payment on Shopify Plus, add the [checkout steps block](/docs/installation/shopify-checkout-steps.md). For a customer’s profile or list of purchases, use the [customer account block](/docs/installation/shopify-customer-accounts.md).

## Add the app block

1. Create a post-purchase draft in the Shopoll workspace for your Shopify store. Open the survey’s **Delivery** tab and choose **Open checkout editor**. You can also open the editor from **Dashboard → Getting started** during setup.
2. In Shopify, check that you are editing the checkout configuration your store uses. You can also reach it from **Settings → Checkout**.
3. Select **Thank you** from the page selector. Open the apps panel and add **Shopoll order survey**. For an Order status only survey, do this on **Order status** instead.
4. Save the checkout configuration. To try the block before placing an order, use its **Preview survey** setting.
5. If you chose both pages, switch to **Order status**, add the block there and save. Preview your draft in Shopoll and choose **Publishing → Publish saved draft** when you want it to accept answers.

In the survey’s **Delivery** tab, choose **Check for visits** after visiting the page on a test order. **Last seen** is the most recent verified visit to that block across the store. A page can record a visit even if the order qualified for a different survey. Open this survey’s **Results** to check its answers.

![An Order status only survey showing the checkout editor link and where to check for the block’s first visit.](/docs/media/checkout-setup.png)

## Choose the survey

1. Open the survey in Shopoll. Expand **Audience and placements** and select **Shopify order**.
2. Enable **Include in automatic checkout selection**. Under **Shopify post-purchase pages**, choose **Thank you and Order status** or **Order status only**.
3. Set the selection priority and any order audience rules, then save and publish. Lower numbers run first until you [save a shared live survey order](/docs/accounts/live-surveys.md). A buyer can qualify by order total, currency, purchased items or a discount.

For Thank you alone, choose both pages in Shopoll and add the block only on Thank you in Shopify. If a previous version of the block used a fixed survey ID, enable that survey for automatic selection before updating the block.

## Choose products or variants

In **Settings → Audience and placements**, add a rule for **Product ID** to reach buyers of any version of a product. Use **Variant ID** to target a particular size, colour or other option.

Open Shopoll inside Shopify admin and choose **Choose products in Shopify** or **Choose variants in Shopify**. Search by product title, select the items and confirm. The rule shows the selected names and IDs. Reopen the picker to change the selection, or use the remove button beside an item. If Shopify requests access to the catalogue, you can grant it there.

You can also paste numeric IDs from Shopify admin into the rule, one per line. This works in the standalone workspace too. A SKU or product handle cannot identify an item in this rule. Save the draft and publish it when you want the audience change to take effect.

## Target a collection, product tag or product type

In **Settings → Audience and placements**, choose **Shopify order** or **Shopify checkout steps**. Add a rule and choose **Collection**, **Product tag** or **Product type**. A workspace owner or administrator can use **Connect Shopify catalogue** in Shopify admin to let Shopoll check the products.

For a collection, choose it by name in Shopify or enter its numeric ID. For a product tag or type, enter the whole value on its own line. Capitalisation is ignored. For example, **Notebook** matches *notebook*, while **Note** does not.

The rule considers all products in the purchase. With **includes every value**, one item can supply the *gift* tag and another the *cobalt* tag. To exclude any purchase containing a selected collection, use **excludes all**.

The same order rules apply to post-sale POS surveys and invitations triggered by an order. When Shopify temporarily cannot supply catalogue details, Shopoll retries order invitations. You can check how your rules combine under **Preview who qualifies** before publishing.

## Combine audience rules

Under **Settings → Audience and placements**, choose **Shopify order**. Use **All of the following rules** when every condition must hold, or **Any of the following rules** when one match is enough.

Choose **At least one rule in each group** when you need both. For example, to hear from repeat buyers who either spent at least 70 or bought a particular product:

1. In **Group 1**, add an **Order total** rule with **at least** and enter **70**. Add a second rule in the same group for the **Product ID**.
2. In **Group 2**, add **Customer order count**, select **greater than** and enter **1**.
3. Open **Preview who qualifies** and try a repeat buyer with a smaller order containing the product. Then change the order count to **1**. Only the repeat buyer should qualify. Save and publish when the audience matches your intent.

You can move a rule between groups without re-entering its values. Each group needs at least one rule.

## Target an order by shipping region

To ask Ontario buyers about delivery, open **Settings → Audience and placements**. Choose **Shopify order**, select **Add audience rule** and set **Field** to **Shipping region**. Leave **is one of** selected, search for *Ontario* and choose **Ontario · Canada**. Add any other regions that should see the same survey.

To narrow the picker to Canada, add a **Shipping country** rule with the value **CA** and choose **All of the following rules**. Under **Preview who qualifies**, try **CA-ON** for Ontario and **CA-QC** for Quebec. Save and publish the draft when the sample orders qualify as expected.

Shopoll uses the shipping address supplied with the order. A pickup or digital order without a shipping region cannot match an **is one of** rule. The same order audience applies to [order invitations](/docs/tutorials/fulfillment-survey.md).

## Preview in the checkout editor

| Preview survey | What appears in the editor |
| --- | --- |
| Leave blank | The first eligible live survey, or a sample discovery survey when none qualifies |
| My Active Survey | The first eligible live survey for this page. The block is empty when none qualifies |
| NPS Survey, Customer Attribution or Customer Satisfaction | An interactive Shopoll sample that you can answer and restart by switching the selection |

The checkout editor uses sample data, so it cannot test rules based on a real order. Use a development-store order to check those rules. Preview answers stay inside the editor. Reward steps display a sample code, and preview visits use no response allowance.

## Show progress and scale questions

Choose a **Progress indicator** under **On-site → Layout** in workspace design defaults or an individual survey’s design override to display progress on survey pages, Thank you and Order status. The progress display counts the questions the buyer will see for their chosen answers. Numeric scale questions use buttons. Up to five scores share a row, and longer scales wrap to fit the checkout block. For text, background, buttons and reward styling, see [style a checkout survey](/docs/installation/shopify-checkout-limits.md).

## Test a return visit

Use a development-store order. Answer the first question on the Thank you page, reopen the Order status page and check that Shopoll resumes the same attempt. Finish the survey and open its report in Shopoll. Compare the order currency and amount with the order in Shopify.

## If the survey is missing

Check the saved checkout layout and make sure the block is on each page you want to use. In Shopoll, check whether the survey is active, the start and end dates allow new responses and the order matches the audience. If the order has just been placed, wait for Shopoll to receive the order details from Shopify, then try again.

Adding a storefront theme block affects storefront pages only. To show a survey there, follow the [storefront guide](/docs/installation/activating-shopoll-on-shopify-2-0.md).

To collect questions from returning customers, see [order status contact forms](/docs/tutorials/shopify-order-contact-form.md).

To measure opens, saved answers and completions, configure [Shopify Web Pixel events](/docs/shopify-app/shopify-web-pixel-events.md).
