# Post-purchase survey

Ask Shopify buyers how they heard about the store on the thank-you page, and count each answer as a touch of the order.

Pixels miss podcasts, word of mouth and ads seen without a click. The survey asks the buyer on the thank-you page, and the answer joins the order's attribution.

## Before you start

- The store is [connected](/platforms/shopify/connect) with orders access, and its orders reach Zernio as `Purchase` events.
- The survey is a block of the Zernio app, so it needs a Shopify plan with checkout and thank-you page customization.

## Add the survey to the thank-you page

1. In the Shopify admin, open **Settings > Checkout > Customize**.
2. Switch the page selector to **Thank you**.
3. Click **Add block** and pick **Post-purchase survey** under Zernio.
4. Set the question and the answers, one per line, then save.

Left empty, the question is "How did you hear about us?". The default answers are Instagram, TikTok, Facebook, Google search, YouTube, Podcast, Friend or family and Other.

## Read the answers

Each answer comes back with how many orders gave it and what those orders are worth now:

```bash
curl "https://zernio.com/api/v1/events/survey?fromDate=2026-11-01&toDate=2026-11-30" \
  -H "Authorization: Bearer $ZERNIO_API_KEY"
```

```json
{
  "fromDate": "2026-11-01",
  "toDate": "2026-11-30",
  "answers": [
    { "answer": "Instagram", "orders": 42, "revenue": 3150.5 },
    { "answer": "Podcast", "orders": 17, "revenue": 1380 }
  ]
}
```

The Ads overview shows the same table as **How buyers heard about you**, once a buyer has answered.

## How it behaves

- A buyer answers once per order. A second answer for the same order is ignored.
- The answer becomes a `survey` touch of the order's `Purchase`, one second before the order. It shows in the event's touches and in conversion paths.
- An answer that names an ad platform carries it: Instagram and Facebook read as Meta, TikTok as TikTok, Google and YouTube as Google.
- A survey touch names no campaign, so campaign results count the order as before. It only shares credit in the attribution models.
- Revenue adds each order's value in its own currency, with refunds taken off.

## If it fails

| Error | Cause | Fix |
|-------|-------|-----|
| The block is not in the **Add block** list | The store's plan does not allow thank-you page blocks, or the app is not installed | Check the plan, then reinstall the app from the connect flow. |
| Answers are stored but no touch appears | The order is not stored as a `Purchase` event | Check that orders access is granted and order events are on for the store. |

## Related

- [Get post-purchase survey answers](/conversions/get-survey-answers)
- [Get an event](/conversions/get-event): the order's touches.
- [Tracking pixels](/platforms/shopify/tracking-pixels)