# Klaviyo

Send wishlist alerts to Klaviyo as events, then build flows and design the emails in Klaviyo.

## Connect Klaviyo

1. In Klaviyo, open **Settings → API keys** and create a private API key with write access to events.
2. In the app, open **Notifications → Integrations**.
3. Turn on **Send events to Klaviyo** and paste the key in **Klaviyo private API key**.
4. Save.

The key isn't checked when you save. Once saved, the field stays empty; leave it blank to keep the key.

Turn on the alerts you want under **Notifications → Alerts**. Only alerts that are on are sent to Klaviyo. To send through Klaviyo only, turn off **Send emails** under **Notifications → Email**.

## Metrics

Each alert is recorded as an event on the customer's Klaviyo profile, matched by email.

| Alert | Klaviyo metric |
|---|---|
| Back in stock | `Wishlist Back In Stock` |
| Price drop | `Wishlist Price Drop` |
| Low stock | `Wishlist Low Stock` |
| Wishlist reminder | `Wishlist Reminder` |
| Share confirmation | `Wishlist Shared` |

A metric shows up in Klaviyo after its first event. To create one sooner, send yourself an alert: for example, save a product, then lower its price.

## Event properties

Every event has the same values as the [email placeholders](https://wishlist.themivo.com/docs/notifications#email-templates), so you can use them in Klaviyo templates as `{{ event.product_title }}`:

`shop_name`, `first_name`, `product_title`, `variant_title`, `product_url`, `product_image`, `old_price`, `new_price`, `quantity`, `item_count`, `wishlist_url`, `share_url`, `unsubscribe_url`

It also has:

| Property | Value |
|---|---|
| `product_id`, `variant_id` | Shopify IDs of the product and variant. |
| `list_id` | The wishlist ID. |
| `currency` | Currency code of the prices. |
| `old_price_amount`, `new_price_amount` | Prices as numbers, such as `12.50`, for conditions and filters. |

## Rules

Klaviyo events follow the same rules as emails:

- Signed-in customers only, and price drop, low stock and reminders need email marketing consent in Shopify.
- **Don't repeat an alert within** and **Daily email limit** apply. Each event counts toward the daily limit, even when **Send emails** is off.
- Customers who unsubscribed from wishlist emails get no events.

When both email and Klaviyo are on, the **Log** shows one row for both. The row is **Sent** if either channel worked.
