# Klaviyo

> Send your newsletter subscribers and every order to Klaviyo, and keep unsubscribes in step both ways.

The **Klaviyo** Gear sends each new newsletter subscriber from your site to Klaviyo, with their name, as they sign up, and
sends every order as a **Placed Order**. Your subscribers also stay in Customers, tagged Newsletter. See [Newsletter signups](/help/customers/newsletter).

## Set it up

1. Open **Gears**, find **Klaviyo** and press **Install**.
2. Paste a **private API key**: in Klaviyo, **Settings** › **API keys** › **Create private API key**. Give it full access to Lists, Profiles and Events, and turn on Subscriptions. It starts with `pk_`.
3. Paste your **List ID**: **Audience** › **Lists & segments** › your list › **Settings**.
4. Press **Save**. Vorjo checks the key and the list with Klaviyo before switching the Gear on.

Subscribers are added with email marketing consent, so your Klaviyo flows can email them.

## Orders

With **Orders** on (the default), every paid or confirmed order is sent to Klaviyo as a **Placed Order** event, with one
**Ordered Product** event per item: order number, items, prices, total, discount code and product links. Use them for
post-purchase and win-back flows, and Klaviyo's revenue reports. Test orders are never sent.

Klaviyo creates a profile for each customer who orders. Only newsletter subscribers are subscribed to email marketing, so
Klaviyo won't send marketing emails to customers who didn't agree to them.

## Customer details

With **Customer details** on, each subscriber gets two profile properties: **Website tags** (*Customer* when they order,
*Booked* when they book) and **Lead source** (where they first came from, such as *Contact form*). Use them in segments.

## Send the people already on your list

Press **Send existing subscribers** on the Gear's page. Up to 40 are sent at once. A longer list is sent in the background
and the result appears under **Recent activity**.

## When someone unsubscribes

Both switches are on by default:

- **Unsubscribes on your site**: when someone unsubscribes on your site, they're unsubscribed in Klaviyo too.
- **Unsubscribes in Klaviyo**: when someone unsubscribes from a Klaviyo email, or Klaviyo stops emailing them, they're
  unsubscribed on your site too, within the hour.

## If something goes wrong

Each send shows under **Recent activity** on the Gear's page, with Klaviyo's own message if it failed, such as a wrong key or
a deleted list. The subscriber is always saved on your site first, so nobody is lost. Fix the key or list, press **Save**,
then **Send existing subscribers** to catch up.
