> 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/tutorials/shopify-dynamic-discount-codes.md).

# Shopify Dynamic Discount Codes

Offer static or dynamic Shopify discount codes through your survey

Share Shopify discount codes at the end of your survey to increase response rates and boost customer lifetime value.

### Option 1: Static Discount Codes

Use a single discount code shared with all respondents.

1. **Log into** your Shopify dashboard.
2. Click **Discounts → Create Discount**.
3. Create your discount code and **copy the code**.
4. Open **Zigpoll** from Shopify admin → **Apps → Zigpoll**.
5. Open your survey and go to **Questions**.
6. Select your **Promo Code** question, or click **New Question** and create one.
7. Set **Reward Type** to **Static** and paste the code into the **Reward Code** field.
8. Press **Update Question**.

Usage limits, eligible customers and combinations for a static code are whatever you set on the discount in Shopify.

### Option 2: Dynamic Discount Codes

Generate a unique one-time-use discount code for each respondent.

1. Open **Zigpoll** from Shopify admin → **Apps → Zigpoll**.
2. Open your survey and go to **Questions**.
3. Select your **Promo Code** question, or click **New Question** and create one.
4. Set **Reward Type** to **Dynamic** (or **Free Shipping** for a free shipping code).
5. Enter the **Discount Rules** and, optionally, a **Discount Expiration**.
6. Press **Update Question**.

Zigpoll creates each code in Shopify when the respondent reaches the Promo Code question. Each code can be used once, by one customer. It appears in Shopify **Discounts** titled `[Zigpoll]` followed by the code. Codes stay in Shopify after the survey is archived or deleted. Set an expiration if you don't want unused codes to linger.

{% hint style="info" %}
For more general information about reward questions, see [Reward Question](/tutorials/reward-question.md). For combining, reporting, cleanup and troubleshooting, see [Discount Codes and Reward Automation](/faq/discount-codes-and-reward-automation.md).
{% 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zigpoll.com/tutorials/shopify-dynamic-discount-codes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
