> 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/track-all-sales.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# Track all sales with one Klaviyo metric

Combine pre-order and Shopify purchase events without counting exported pre-orders twice.

Background: [How marketing integrations work](https://docs.getpurpledot.com/integrations/marketing/how-marketing-integrations-work.md#campaigns-and-revenue).

## Before you start

* [Connect Klaviyo](https://docs.getpurpledot.com/integrations/marketing/klaviyo/connect.md) and turn on **Send placed pre-order events**.
* Your Shopify sales send a `Placed Order` event to Klaviyo.

## Steps

1. In Klaviyo, combine your placed pre-order event with the Shopify `Placed Order` event in one metric.
2. Exclude pre-orders from the Shopify metric so exported pre-orders are counted once.

<figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-7760f80e8282ec7f8a4c165ca25e8a92763627b9%2Fhow-to-use-klaviyo-with-purple-dot-3.png?alt=media" alt="Klaviyo metric combining Shopify orders and pre-orders"><figcaption></figcaption></figure>

## Verify

Check that a pre-order contributes once to the combined metric, including after it is exported to Shopify.

## Troubleshooting

* [My integration is not syncing](https://docs.getpurpledot.com/troubleshooting/orders-and-inventory/integration-is-not-syncing.md)

## Related

* **Concept:** [How marketing integrations work](https://docs.getpurpledot.com/integrations/marketing/how-marketing-integrations-work.md#how-it-works), [Pre-order timing and your reporting](https://docs.getpurpledot.com/understanding-purple-dot/pre-order-timing-and-your-reporting.md#de-duplicating-orders-at-release)
* **Do this:** [Connect Klaviyo](https://docs.getpurpledot.com/integrations/marketing/klaviyo/connect.md)
* **Look up:** [Klaviyo events and settings](https://docs.getpurpledot.com/integrations/marketing/klaviyo/events-and-settings.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/track-all-sales.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.
