Skip to main content

Add Klaviyo Segments to Rebuy Data Sources

Integrate Klaviyo customer segments into Rebuy product recommendations to deliver personalized shopping experiences that drive conversions.

Written by Christian Sokolowski

What is Klaviyo?

Klaviyo is a unified customer platform that helps you build stronger relationships with your customers by giving you full control over your data and interactions. It tracks shopper behavior across your site—what they click, where they drop off, and what drives them to buy. With this insight, you can create and automate personalized emails and SMS messages—like cart reminders, price drop alerts, and product recommendations—using Klaviyo’s built-in templates and workflows. It integrates seamlessly with your tech stack and scales with your growth.


Integration Overview

Merchants using Klaviyo segments can integrate their data into Rebuy Data Sources. Leverage the power of Klaviyo's segments and Rebuy's rules engine to create a fully personalized customer experience that converts and retains shoppers.

The introduction of Klaviyo Segments into Rebuy also empowers merchants to track customer-specific data such as previously purchased and recently viewed products.


Installation Instructions

Prerequisites

Before you begin, ensure the following:

  • Rebuy x Klaviyo Integration: Your Rebuy and Klaviyo accounts are connected.

  • Klaviyo Segments: At least one customer segment is created in Klaviyo.

Integration Installation

Step 1: Enable Klaviyo Segments in Rebuy

  1. Access Rebuy Dashboard:

    • Log in to your Rebuy Admin Dashboard.

    • Navigate to the Integrations tab.​

  2. Configure Klaviyo Integration:

    • Click on the Klaviyo integration card.

    • If not already connected, follow the prompts to enable the integration.​

  3. Enable Segments:

    • Toggle on the Klaviyo Segments Integration.

    • Click Continue and then Allow to grant necessary permissions.​

  4. Resync Segments:

    • Click the Resync link that appears under the segments toggle.

    • In the popup window, click Resync to initiate the process.

    • A confirmation message will appear, indicating the resync is occurring in the background.​

  5. Optional - Purge Segment Data:

    • If needed, click the Purge Segment Data link under the Resync option.

    • In the popup window, click Purge Segment Data to delete existing segment data from Rebuy.

Wait for your segments to finish syncing

Rebuy pulls your Klaviyo segments in the background, so the Klaviyo Segment dropdown in your Data Source rules fills in progressively and shows only the segments that have synced so far. A partial list on a newly connected account is the sync still working, not a failed integration, and the segments already there work normally while the rest arrive. Toggling on the Klaviyo Segments Integration queues that first sync for you, so you do not need to click Resync after connecting.

Before you click Resync under the segments toggle:

  • Rebuy will not start a second segment sync within 10 minutes of one starting. Clicking Resync inside that window returns Segments re-sync already in progress and does nothing else. The same wait applies to Purge Segment Data.

  • A resync removes the segments Rebuy has already stored and pulls every segment again from scratch, so clicking it mid-sync restarts the work instead of speeding it up.

If segments are still missing after a resync you started yourself has finished, contact Rebuy support with the names of the segments that are not appearing.

Step 2: Apply Klaviyo Segments to Data Sources

  1. Navigate to Data Sources:

    • In the Rebuy Admin Dashboard, go to the Data Sources tab.​

  2. Select or Create a Ruleset:

    • Choose an existing ruleset to update or click New Ruleset to create a new one.​

  3. Configure Rules:

    • In the IF section:

      • Change the condition from Anything to Klaviyo Segment.

      • Select the desired customer segment from the dropdown.

      • Choose Contains user to target customers in the segment or Does not contain user to exclude them.

  4. Combine Multiple Segments:

    • Use OR IF to target customers in any of the selected segments.

    • Use AND to target customers who are in all selected segments.​

  5. Define Return Actions:

    • In the RETURN section, specify the actions to take when conditions are met, such as:

      • Changing the endpoint.

      • Selecting specific products or collections to recommend.

Step 3: Preview Your Data Source

  1. Access Preview:

    • Click the Preview Ruleset button at the top of the Data Source page.​

  2. Simulate Conditions:

    • In the preview page, set parameters such as:

      • Input products.

      • Cart input and details.

      • Customer ID.

  3. Run Simulation:

    • Click Simulate to see the products the Data Source will return based on your configurations.


Customer Examples

The following Data Source examples provide use cases for how segments can be used when surfacing product recommendations. Notice how the RETURN sections further personalize the widgets to return a custom super title, title, and discount.


FAQs

What does "Resync" mean?

Resyncing removes your current segments from Rebuy and performs a fresh sync with Klaviyo to update segment data.​

What does "Purge Segment Data" do?

Purging deletes segment data from Rebuy. This is useful for troubleshooting issues like missing segments or when disabling the segment integration. Note that disabling the integration does not automatically purge data.

What does "Contains User" mean?

This option targets customers who meet the criteria for the selected Klaviyo segment, typically identified by their email address.

What does "Does Not Contain User" mean?

This option targets customers who do not meet the criteria for the selected Klaviyo segment.

How does Rebuy identify customers in a segment?

Rebuy matches customer emails from Klaviyo segments to those in Rebuy. For first-time visitors, identification occurs after they enter their email on your site. This information is stored in a cookie, allowing Rebuy to recognize returning customers without requiring them to sign in, as long as the cookie remains and the email address matches Shopify's user information. Rebuy’s Klaviyo Segment data updates hourly, on the hour.

Where are the Data Source segments pulled from?

Rebuy pulls segments directly from your Klaviyo account. The available segments in Rebuy mirror those created in Klaviyo. Manage and update your segments within Klaviyo to reflect changes in Rebuy.

Why are some of my Klaviyo segments missing from Rebuy?

Segments missing from the Klaviyo Segment dropdown in a Rebuy Data Source usually mean the segment sync has not finished, since Rebuy pulls your segments from Klaviyo in the background and the list fills in progressively. A newly connected account shows a partial list until that first sync completes, and the segments already there work normally while the rest arrive. Confirm the missing segments exist in your Klaviyo account, then give the sync time to finish before clicking Resync in Integrations > Klaviyo.

Can I click Resync again if my Klaviyo segments are still missing?

No, not within 10 minutes of the previous sync starting. Rebuy blocks a second Klaviyo segment sync for 10 minutes after one begins and returns Segments re-sync already in progress if you click Resync during that window. A resync also removes the segments Rebuy has already stored and pulls every segment again from scratch, so an early retry restarts the work rather than finishing it faster. Wait at least 10 minutes from when the sync started, then click Resync if segments are still missing.

Do I need to resync after creating a new segment in Klaviyo?

No, a new Klaviyo segment does not need a manual resync. Rebuy checks Klaviyo hourly, on the hour, and picks up segments created since the last check, so a segment you just built in Klaviyo becomes selectable in your Data Source rules on the next hourly update. Use Resync for a segment that is still missing well after that hourly update has passed, not as a routine step after creating one.

Did this answer your question?