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

# Connect Triple Whale

Connect Triple Whale to receive events from the Purple Dot checkout.

Background: [How analytics integrations work](https://docs.getpurpledot.com/integrations/analytics/how-analytics-integrations-work.md#checkout-events).

## Before you start

* Your store sells pre-orders through the Purple Dot checkout.
* The [Triple Whale](https://apps.shopify.com/triplewhale-1) app is installed in your Shopify store and connected to your Triple Whale account.
* The Triple Pixel is active on the storefront through that app and is tracking your storefront browser sessions.

  <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-7d244f035090c7ebd005190eda15938f2c7af158%2Fanalytics-triple-whale-setup-4.png?alt=media" alt="Triple Whale setup screen"><figcaption></figcaption></figure>
* You have admin or developer access to your Triple Whale dashboard, so you can generate API keys.

## Steps

1. In your Triple Whale dashboard, go to **Data** > **APIs** and select **Generate** to create an API key. See Triple Whale's guide to [creating and managing API keys](https://kb.triplewhale.com/en/articles/8116412-creating-and-managing-api-keys).
2. Enter a description such as `Purple Dot Integration`, select the `Orders: Write` scope, and select **Generate API Key**.
3. Copy the API key straight away and store it securely. Triple Whale shows the full key only once.

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-4139bc6e4e07cd39a8c6263ca7beaad9e18e1ff3%2Fanalytics-triple-whale-setup-1.png?alt=media" alt="Triple Whale setup screen"><figcaption></figcaption></figure>
4. In Triple Whale, go to **Settings** > **Store** and copy the domain from the store details.

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-420f4656dbb7c0d610578561df8f2cf2fd7d0fdf%2Fanalytics-triple-whale-setup-2.png?alt=media" alt="Triple Whale setup screen"><figcaption></figcaption></figure>
5. In the Merchant Portal, go to **Settings** > **Integrations**.
6. Under **Analytics**, select **Connect** for **Triple Whale**.
7. Enter the **API Key** from step 3, and enter your permanent Shopify domain in **Shop URL**. It must match the domain configured in Triple Whale.
8. Select **Save**.

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-81bf3b238759a33ccdf9f578926c84b0e5c5b8fd%2Fanalytics-triple-whale-setup-3.png?alt=media" alt="Triple Whale setup screen"><figcaption></figcaption></figure>
9. Set up a global filter in Triple Whale so it ignores the orders Purple Dot exports to Shopify when you release pre-orders. In Triple Whale, go to **Settings** > **Integrations** > **Shopify** and find the **Order Filters** or **Global Exclusions** section. See Triple Whale's guide to [global filters](https://kb.triplewhale.com/en/articles/11386505-global-filters).
10. Add a filter rule with **Filter Type** set to **Order Tag**, **Condition** set to **Contains**, and **Value** set to `purple dot`, then select **Save Changes**.

{% hint style="warning" %}
Set up the Shopify order filter before collecting live pre-orders to avoid counting revenue twice. See [Revenue counting](https://docs.getpurpledot.com/integrations/analytics/triple-whale/events-and-settings.md#revenue-counting).
{% endhint %}

## Verify

Triple Whale processes server-side entries as they arrive, so events don't stream into a real-time test console. Check the connection in Triple Whale instead:

* **Custom Account Health page:** complete a test checkout through the Purple Dot checkout, then open your **Custom Account Health** page in Triple Whale. In the **Orders API** and **Pixel** sections, the card changes from *Not Installed* to the number of events received in the last 24 hours. The **Last order received** timestamp updates.
* **SQL Editor:** to confirm checkout events (`initiate_checkout`) and pre-orders carry the right customer and metadata fields, open the **SQL Editor** tab in Triple Whale and look at the most recent records:

```sql
SELECT * FROM orders_table
WHERE event_date = CURRENT_DATE()
ORDER BY created_at DESC
LIMIT 5
```

## Troubleshooting

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

## Related

* **Concept:** [Choosing a checkout method](https://docs.getpurpledot.com/understanding-purple-dot/choosing-a-checkout-method.md)
* **Do this:** [Measure pre-order sales only](https://docs.getpurpledot.com/managing-pre-orders/reports-and-data/measure-pre-order-sales-only.md)
* **Look up:** [Triple Whale events and settings](https://docs.getpurpledot.com/integrations/analytics/triple-whale/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/analytics/triple-whale.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.
