# Klaviyo URL Templates

When embedding Zigpoll survey links in your Klaviyo email templates, use URL parameters to pass through customer and order data. This enables features like Shopify Customer Tagging and Order Tagging.

### Abandoned Cart Flow

Include the checkout URL and email to link responses to the correct abandoned cart:

1. Go to **Surveys → Select your survey → Public Link**.
2. Click **+ Add query variables to your public link**.
3. Add these entries:

| Key                    | Value                          |
| ---------------------- | ------------------------------ |
| `shopify_checkout_url` | `{{event.extra.checkout_url}}` |
| `email`                | `{{email}}`                    |

Your URL will look like:

```
https://share.zigpoll.com/ACCOUNT_ID/POLL_ID?shopify_checkout_url={{event.extra.checkout_url}}&email={{email}}
```

### Post Purchase Flow

Include the order ID, customer ID, name, and email:

1. Go to **Surveys → Select your survey → Public Link**.
2. Click **+ Add query variables to your public link**.
3. Add these entries:

| Key                   | Value                                                                    |
| --------------------- | ------------------------------------------------------------------------ |
| `shopify_order_id`    | `{{event.extra.id}}`                                                     |
| `shopify_customer_id` | `{{event.extra.customer.id}}`                                            |
| `name`                | `{{event.extra.customer.first_name}} {{event.extra.customer.last_name}}` |
| `email`               | `{{email}}`                                                              |

Your URL will look like:

```
https://share.zigpoll.com/ACCOUNT_ID/POLL_ID?shopify_customer_id={{event.extra.customer.id}}&shopify_order_id={{event.extra.id}}&email={{email}}&name={{event.extra.customer.first_name}} {{event.extra.customer.last_name}}
```

### General Email Template

For a simple email send, include just the email address:

1. Go to **Surveys → Select your survey → Public Link**.
2. Click **+ Add query variables to your public link**.
3. Add:

| Key     | Value       |
| ------- | ----------- |
| `email` | `{{email}}` |

Your URL will look like:

```
https://share.zigpoll.com/ACCOUNT_ID/POLL_ID?email={{email}}
```

Paste the generated URL into your Klaviyo email template and your data will start flowing into your Zigpoll dashboard.


---

# Agent Instructions: 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:

```
GET https://docs.zigpoll.com/tutorials/klaviyo-url-templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
