> For the complete documentation index, see [llms.txt](https://docs.zigpoll.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zigpoll.com/integrations/aftership.md).

# Aftership

Include Zigpoll survey links in your Aftership email templates

Include a link to your Zigpoll survey within an Aftership email template to collect feedback tied to specific orders and customers.

#### Step #1: Copy Your Zigpoll Public Link

1. Go to **Apps → Zigpoll → Surveys → Select your survey**.
2. Click the link icon at the top right of the page.
3. Copy the link in the URL bar. It will look something like this:

```
https://survey.zigpoll.com/2vLaXDvDpaVJjmngT
```

Accounts with a [custom survey domain](/custom-survey-domains.md) see their own domain instead of `survey.zigpoll.com`.

#### Step #2: Add Merge Tags to the URL

1. Go to your Aftership account.
2. Edit your email template.
3. Add merge tags as query parameters for the link from Step #1:

```
https://survey.zigpoll.com/2vLaXDvDpaVJjmngT?email=*|TO_EMAIL|*&shopify_order_id=*|ORDER_ID|*
```

{% hint style="info" %}
The extra query parameters tie each response to the customer's email address and order ID, so you know who answered and what they ordered. Zigpoll uses that email to pull the customer's Shopify information automatically, giving you a full profile of the respondent. You can also send their survey responses back to Shopify and build custom segments from their answers.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.zigpoll.com/integrations/aftership.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
