Setup & Implementation
How to Show a Shopify Survey Only to Buyers of a Specific Product
3 min read
To ask a question only after someone buys a particular item, add a Product ID condition to an OrderSurvey survey. Choose Variant ID when the question applies to just one size, color or pack. The survey can appear on Shopify’s Thank you and Order status pages after checkout.
A merchant in Shopify Community wanted to collect information only from buyers of one item. The timing matters. If a buyer can skip the question and the order can still ship, a post-purchase survey fits. If you need engraving text before making the item, collect it on the product page before the buyer adds the item to the cart.
Choose the ID that matches the question
Suppose a store sells tea in a tin and a refill pouch. “What made you choose this tea?” makes sense for either package. “Do you already have a tin for this refill?” only makes sense for the pouch.
In Shopify admin, open Products and select the tea. The number after /products/ in the admin URL identifies the product. Open the refill variant to find its own ID. Shopify documents where to find both, including the default variant for a product with no options. Use the numeric ID in the rule. A SKU, product title or storefront handle is a different identifier. Shopify’s guide to product and variant IDs
Set up the refill question
- In OrderSurvey, create a survey asking “Do you already have a tin for this refill?” Give buyers a way to answer yes, no or “It’s a gift.”
- Under Targeting Rules, choose Add Condition, select Variant ID, choose equals, and enter the refill variant’s numeric ID. Leave the audience at All orders if repeat buyers should see it too.
- Enable the survey for the online pages you want to use. In Shopify’s checkout editor, add the OrderSurvey block to each of those pages and save. Thank you and Order status setup
- If you also run a general feedback survey, give the refill survey a higher Survey priority when its question should take precedence. The larger number wins among eligible surveys. How survey targeting and priority work
For a family of qualifying variants, you can enter several variant IDs separated by commas in one condition. Any listed ID can match. If an order must include both the tin and the refill, add a separate condition for each variant and choose ALL conditions match.
Test with three baskets
The IDs below are illustrative. Assume both packages belong to product 73001, the tin is variant 81001, and the refill is variant 81002. For the single rule Variant ID equals 81002, use three separate test orders in a test store.
| Test basket | Expected refill survey |
|---|---|
| Tin only | Hidden |
| Refill only | Shown |
| Tin and refill together | Shown once for the order |
Check the Thank you page first. To check Order status on the same order, leave the survey unanswered on Thank you. A submitted answer can hide a survey on a later visit. Submit one test answer and find it in the survey’s response list. If the tin-only order qualifies, check whether you selected Product ID and entered the shared product ID. If a different survey appears for the mixed basket, check its priority. Troubleshoot a missing survey block
A buyer who selects “It’s a gift” has answered for that order. If the basket contained two refills, record one gift answer. To investigate whether gift buyers need a different packing insert, review their answers alongside the contents of their orders before changing the insert for everyone.
Product and variant targeting is available on Free, which includes 100 responses per rolling 30 days across the store. Install OrderSurvey to try one product question, or see the setup walkthrough.
Frequently asked questions
Can I show a Shopify survey only to buyers of one size or color?
Yes. In OrderSurvey, choose Variant ID in Targeting Rules and enter the numeric ID of the exact size and color combination. Product ID includes every variant of that product.
Will the survey appear if the buyer also orders another item?
Yes, if the order includes a matching item and the other survey settings allow it. A second item or a second unit does not create another copy of the question.
Run your first post-purchase survey
Ask how customers found you or collect feedback on Shopify's Thank you and Order status pages. One $24 USD/month plan includes unlimited use and every feature. After installing, add the survey block to each page in Shopify's editor.
Install OrderSurveyWant help getting started? Book a 20-minute setup call.