> For the complete documentation index, see [llms.txt](https://docs.getpurpledot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getpurpledot.com/integrations/marketing/klaviyo/events-and-settings.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# Klaviyo events and settings

Data and settings for the Klaviyo integration.

The Klaviyo integration sends data from Purple Dot to Klaviyo. Fields and settings are grouped by purpose.

## Data

| Data                   | Direction             | Notes                                                                                                                                                                                     |
| ---------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Placed pre-order event | Purple Dot to Klaviyo | Sent with the name you set every time a shopper buys a pre-order through the Purple Dot checkout, when **Send placed pre-order events** is on. It includes details of what was purchased. |
| Email subscription     | Purple Dot to Klaviyo | Purple Dot creates or updates the shopper's profile as subscribed to `Email`.                                                                                                             |
| SMS subscription       | Purple Dot to Klaviyo | Purple Dot creates or updates the shopper's profile as subscribed to `Text messaging marketing`.                                                                                          |
| SMS list membership    | Purple Dot to Klaviyo | The shopper's phone number is added to the list in **SMS list ID**.                                                                                                                       |

## Event payload

The event has this structure. Angle-bracket values describe the data sent for a purchase; this is a schema example.

```
type: 'event',
attributes: {
  profile: {
    data: {
      type: 'profile',
      attributes: {
        email: <shopper's email address>,
        first_name: <shopper's first name>,
        last_name: <shopper's last name>,
        location: {
          address1: <first line of shipping address>,
          address2: <second line of shipping address>,
          city: <shipping address city>,
          region: <shipping address region>,
          country: <shipping address country>,
          zip: <shipping address zip>,
        },
        phone_number: <shopper's phone number>,
      },
    },
  },
  metric: {
    data: {
      type: 'metric',
      attributes: {
        name: <as configured in the Merchant Portal>,
      },
    },
  },
  properties: {
    OrderId: <Purple Dot pre-order reference>,
    ItemNames: [ProductName],
    Items: [{
      Cancelled: <if this line item is canceled>,
      ProductName: <name of the product>,
      ProductID: <external ID of this product>,
      VariantID: <external ID of the specific variant purchased>,
      SKU: <sku code of the specific variant purchased>,
      Quantity: <how many units were purchased>,
      ItemPrice: <unit price>,
      RowTotal: <line item total>,
      ShippingGroupID: <Purple Dot ID of the shipping group for this line item>,
    }],
    ShippingGroups: [{
      ShippingGroupID: <Purple Dot ID of this shipping group>,
      Title: <shipping group name>,
      Code: <shipping group code>,
      ItemPrice: <shipping group price>,
      RowTotal: <shipping group total>,
    }],
    Discounts: [{
      Type: <type of discount used>,
      Code: <discount code>,
      Amount: <total amount off>,
    }],
  },
  value: <total pre-order amount>,
  value_currency: <currency shopper paid in>,
  time: <date and time this pre-order was placed>,
  unique_id: <Purple Dot pre-order reference>,
}
```

## Settings

| Setting                                                      | Meaning                                                                                              |
| ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------- |
| Private API key `Purple Dot checkout`                        | Requires `events:write`, `lists:write`, `profiles:write`, and `subscriptions:write`.                 |
| Send placed pre-order events `Purple Dot checkout`           | Sends a purchase event when a pre-order purchase completes.                                          |
| Placed pre-order event name `Purple Dot checkout`            | The Klaviyo metric name. Defaults to `Placed Pre-Order`.                                             |
| Subscribe shoppers when they pre-order `Purple Dot checkout` | Creates or updates email and SMS subscriptions when the shopper consents and completes the purchase. |
| SMS list ID `Purple Dot checkout`                            | Optional list that receives consenting SMS shoppers.                                                 |

## Limits

* Purple Dot subscribes a shopper only if they give consent and go on to buy the pre-order.
* Purple Dot respects your single or double opt-in settings in Klaviyo. With double opt-in, the shopper isn't subscribed to `Email` until they respond to the confirmation email Klaviyo sends them.

## Related

* **Concept:** [How marketing integrations work](https://docs.getpurpledot.com/integrations/marketing/how-marketing-integrations-work.md#how-it-works)
* **Do this:** [Connect Klaviyo](https://docs.getpurpledot.com/integrations/marketing/klaviyo/connect.md)
* **Fix it:** [My integration is not syncing](https://docs.getpurpledot.com/troubleshooting/orders-and-inventory/integration-is-not-syncing.md)


---

# 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.getpurpledot.com/integrations/marketing/klaviyo/events-and-settings.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.
