---
title: "How to integrate with Segment"
description: "Learn how to integrate Segment with Klaviyo to be able to trigger and filter flows, and define segments using events synced to Klaviyo from your Segment project. Klaviyo is able to sync any track and identify calls you make from Segment to Klaviyo."
canonical_url: "https://help.klaviyo.com/hc/en-us/articles/115005252988"
markdown_url: "https://help.klaviyo.com/hc/en-us/articles/115005252988.md"
locale: "en-us"
category: "Integrations"
section: "Segment"
updated: "2026-10-28"
---

# How to integrate with Segment

## You will learn

Learn how to integrate Segment with Klaviyo to be able to trigger and filter flows, and define segments using events synced to Klaviyo from your Segment project. Use the Klaviyo (Actions) destination to send `track` events and `identify` profile updates from Segment to Klaviyo.

This guide covers sending Segment data to Klaviyo and, optionally, sending Klaviyo email activity back to Segment. For the destination configuration, use Segment's [comprehensive guide to integrating with Klaviyo](https://www.twilio.com/docs/segment/connections/destinations/catalog/actions-klaviyo).

## Before you begin

**📝 Note:** Use consistent customer identifiers across Segment and Klaviyo. When sending email activity back to Segment, Klaviyo uses the Segment user ID or anonymous ID stored on each profile.

If a profile has neither Segment identifier, Klaviyo uses its email address as an anonymous ID when sending email activity to Segment. This can create a separate identity in Segment. You can exclude these profiles using the setting in *Enable the integration in Klaviyo* below.

## Connect Segment and Klaviyo

### Add Klaviyo (Actions) as a destination in Segment

Follow Segment's [Klaviyo (Actions) setup guide](https://www.twilio.com/docs/segment/connections/destinations/catalog/actions-klaviyo#getting-started) to add the destination and connect the Segment source whose data you want to send to Klaviyo.

![Connections tab in Segment with Add Destination button with blue background](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/d4eb1e363310a6010614239047cfdf70ce9d9220-2852x1096.jpg?auto=format)

Configure the destination and its action mappings using Segment's guide and the Klaviyo details below.

![Segment catalog with Klaviyo in search bar and Klaviyo card in results](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/8bec2ebdebb9cce81c2849daeae260e663a6789a-1396x676.jpg?auto=format)

- A private Klaviyo API key with full access to Accounts, Campaigns, Events, Lists, Profiles, Segments, and Subscriptions. Learn [how to create a private API key](https://help.klaviyo.com/hc/en-us/articles/7423954176283.md) and [how to manage your API keys in Klaviyo](https://help.klaviyo.com/hc/en-us/articles/115005062267.md).

- If you want to add profiles to a list, use that list’s ID in the relevant action mapping. Learn [how to find your List ID in Klaviyo](https://help.klaviyo.com/hc/en-us/articles/115005078647.md).



Treat private API keys like passwords kept in a safe place and never exposed to the public.

![Klaviyo setup page in Segment with fields for API key, List ID, and Enter your private API Key](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/abd5f6bc984e1eb3732b7705e8c820cd1e2db317-1592x826.jpg?auto=format)

Use **Upsert Profile** for `identify` calls that create or update profile information, and **Track Event** for `track` calls that record customer activity. Follow Segment's guide to configure and enable the mappings you need.

![Klaviyo setup page in Segment Other Settings section with Confirm Optin set to On and Enforce Email as Primary Identifier set to On](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/ef42f2741d5bb7d9064610cfa7db155594bb4c86-1534x322.jpg?auto=format)

Enable the destination in Segment to start sending data that matches your enabled mappings.

### Send Klaviyo email activity to Segment (optional)

The return sync sends email delivery, open, link click, bounce, spam report, and unsubscribe events to Segment.

Get a write key for the Segment source that should receive your Klaviyo email activity. You can [set up a Klaviyo source](https://www.twilio.com/docs/segment/connections/sources/catalog/cloud-apps/klaviyo#getting-started) or [find the write key for an existing event streams source](https://www.twilio.com/docs/segment/connections/find-writekey).

![List of sources in Connections tab in Segment showing test website in list](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/5f5876cc868103c41dbae173ae81735879da010b-2372x628.jpg?auto=format)

![Test website source page in Segment with Settings tab selected, with Source ID and Write Key blurred out](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/2a0d2855d1489daa679fa8227851cf22f0c72636-1554x912.jpg?auto=format)

Copy your *Write Key*. Your write key is another private API key. Treat it like a password; keep it in a safe place and never expose it to the public.

#### Enable the integration in Klaviyo

1. In Klaviyo, select the **Integrations** tab.

2. Select **Explore apps**, search for *Segment*, and then click the card. Then, click **Install**.

3. Paste the write key you copied earlier into the box and choose your Segment region, then click **Connect to Segment**.

   - Choose **United States** if your Segment URL is: [https://app.segment.com/](https://app.segment.com/).

   - Choose **European Union** if your Segment URL is: [https://eu1.app.segment.com/](https://eu1.app.segment.com/).




![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/4ed3f1660c395801ca43868682950f941a30f421-2949x1479.png?auto=format)

4. On the next page, you can limit the email activity sent back to Segment by checking the box next to **Do not sync profiles that are not updated by the Klaviyo Destination**.

![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/27e5027b48edc8522516ec5a8719ed4661402555-1704x300.png?auto=format)

  - This setting controls the return sync. It does not merge or remove profiles in Klaviyo. If you leave it unchecked, profiles without stored Segment identifiers send email activity using their email address as an anonymous ID in Segment.

  - Select the checkbox to send email activity only for profiles with a stored Segment user ID or anonymous ID. Eligibility depends on these identifiers, not where the profile was first created.



5. Once finished, click **Complete setup**.

After sending an email from Klaviyo, check the receiving source in Segment for email activity. See [Segment’s Klaviyo source guide](https://www.twilio.com/docs/segment/connections/sources/catalog/cloud-apps/klaviyo) for the events to expect.

## Segment metrics

We recommend syncing the most important events to Klaviyo, such as:

- When a customer signs up

- When a customer starts to checkout or expresses interest in paying

- What a customer buys (including pictures of items and descriptions of items)



Provide the profile identifiers required by your Klaviyo (Actions) mapping, such as an email address or external ID. For detailed information on identifiers and event formatting, see [Segment's Klaviyo integration guide](https://www.twilio.com/docs/segment/connections/destinations/catalog/actions-klaviyo).

For transactional web businesses and ecommerce platforms, we recommend following our [guide to integrating a custom ecommerce cart or platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_platform_without_a_pre_built_klaviyo_integration) for detailed information on the events that should be sent to Klaviyo through Segment.

## Monitoring the Klaviyo sync

Once you enable the Klaviyo (Actions) destination and its mappings in Segment, your `identify` and `track` calls will begin sending data to Klaviyo within 5-10 minutes. To verify the event sync, send a test `track` event, then go to **Analytics > Metrics** in Klaviyo to find the corresponding metric.

For **Track Event**, the Metric Name mapping determines the metric name in Klaviyo. Klaviyo treats Segment metrics as third-party API metrics, so each metric will have a gear icon next to its name in Klaviyo. To view the incoming data, open the metric and select **Activity feed**.

![segment9.jpg](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/8163a711dff1d5d416e65549a887f94be173869b-2304x216.jpg?auto=format)

To verify an `identify` call sent through **Upsert Profile**, check the corresponding Klaviyo profile for the updated information. Profile updates do not create a metric or an event in the metric’s activity feed.

## Outcome

You've now integrated Segment with Klaviyo and can start using Segment data to trigger and filter flows, and define segments using events synced to Klaviyo from your Segment project.

## Additional resources

- [Getting started with flows](https://help.klaviyo.com/hc/en-us/articles/115002774932.md)
  Learn how to use flows, also known as automations or drip campaigns, in Klaviyo for personalized and automated communications to your customers, and learn how to set your first flow live.
- [Getting started with segments](https://help.klaviyo.com/hc/en-us/articles/115005237908.md)
  Learn how to create and use segments in Klaviyo, which are a powerful tool for understanding your audience and sending targeted messages. 
