---
title: "Show a question only to some customers"
description: "Ask a question only to new or returning customers, or only when the order contains particular products, and see where each rule works."
---

> 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.

# Show a question only to some customers

Each question can be shown to everyone, only to new customers, or only to returning customers, and only when the order contains products you choose. Customers the rule leaves out skip the question and go on to the next one.

## Before you start

- **The survey runs where UserLoop knows the order.** The rules work fully on the Thank-you page, partly elsewhere, and not at all on a website survey. [Where the rules work](#where-the-rules-work) has the details.
- **For a product rule, your Shopify store is connected.** Check in **Settings → Store**.
- **Any plan works.**

## Choose who sees a question

1. **Open the question's Logic tab**

   In the **Questions** stage, select the question, then select the **Logic** tab.
2. **Choose the customers**

   Under **Who sees this question**, choose one:

   - **Everyone**: every customer.
   - **New**: customers placing their first order.
   - **Returning**: customers who have ordered before.

## Ask only when the order contains certain products

1. **Choose the products**

   Under **Only when the order contains**, select **Choose products**. Search your products under **Search your products**, tick the ones you want, then select **Done**.

   The question is asked when the order contains any of the products you chose. To change them later, select **Add or remove products**.
2. **Save**

   Select **Save** at the top of the editor. A live survey uses the new rule once you select **Publish changes**.

You can use both rules on one question: for example, only returning customers whose order contains a particular product.

**How often** says **Every eligible order**: the question is asked on every order that matches the rules.

## Where the rules work

The rules need to know who the customer is and what they ordered. Where the survey runs decides whether it can.

| Where the survey runs | New or returning | Products in the order |
| --- | --- | --- |
| **Thank-you page** | Works | Works |
| **Store popup** and **Theme block** | Works for customers signed in to your store. Visitors who aren't signed in don't see a question set to **New** or **Returning**. | Not used: every customer sees the question |
| **Link and QR code** and **Email** | The survey page doesn't always know who the customer is. A question set to **Returning** may never show. | Shown only when the page knows the order, so it may never show |
| **Your website** | Not available | Not available |

On a website survey, the **Logic** tab says that everyone who sees the survey sees each question. Choose who sees the whole survey on the **Targeting** stage instead: see [Choose which pages and visitors see it](https://docs.userloop.io/surveys/website/choose-pages-and-visitors/).

To send an email survey only to some customers, set it up when you choose who gets the email: see [Send only to some customers](https://docs.userloop.io/surveys/email/send-only-to-some-customers/).

## Check it worked

- In the list of questions, the question's type icon has a dot. Point at the icon to see the rule, such as "Returning customers only".
- In the preview, open the customer menu above the survey (it says **Any customer**) and choose **New customer** or **Returning customer**. The preview shows the questions that customer would see.
- Select **Flow** above the preview to see the whole survey as a map. Questions that only some customers see are dashed.

## If something goes wrong

| You see | What to do |
| --- | --- |
| **Product targeting needs a connected Shopify store.** | Select **Connect a store** and connect your Shopify store. |
| **Your Shopify store needs reconnecting before products can be searched.** | Select **Reconnect your store**. |
| **Products couldn’t be loaded from Shopify.** | Select **Try again**. |
| **Both options are on, which no customer matches. Turn one off.** | Turn off **Returning customers only** or **New customers only**. |
| A chosen product shows **Not found in your store** | It's no longer in your Shopify store. Remove it, and choose another. |

## Related

- [Ask a follow-up question](https://docs.userloop.io/surveys/build/ask-a-follow-up-question/)
- [Choose where your survey runs](https://docs.userloop.io/surveys/get-started/choose-where-your-survey-runs/)

Source: https://docs.userloop.io/surveys/build/show-a-question-to-some-customers/index.mdx
