Use Klaviyo segments to send user data to Regal

This guide describes how to use Klaviyo to send data to Regal. It discusses how to set up Klaviyo to create contacts and send track events to Regal.

Klaviyo Segments

Klaviyo does not support webhooks out, so instead the Regal Klaviyo integration relies on Regal polling Klaivyo segments or lists hourly. You can set up different lists or segments to represent the contacts you want to add to your Regal audience as well as track events you want to send to Regal that represent the important steps users take throughout their lifecycle, including purchase events.

For example, let's say you are a Pet Food Subscription company, and you want to send new contacts to Regal as well as events for the following key user actions: checkout started, add to cart, purchase completed, here's what you would do in Klaivyo:


Step 1: Create a segment or list for new contacts whom you want to have in your Regal audience.
You can do this by either:

  • defining a dynamic segment with the following criteria: people created in the last 1 day for whom you have a phone number
  • defining a list that collects submissions from a Klaivyo form (for example if you use Klaviyo forms on your site to collect phone numbers and optin on exit intent).

Example Segment for New Contacts


Last 1 Day Condition

Adding the "in last 1 day" condition is important so that the segment never gets too long. As Regal needs to continuously poll the segment, the longer it gets the longer it will take to process and create new contacts.


Step 2: Create a segment for the Checkout Started event with the following criteria:


Step 3: Create a segment for the Add to Cart event with the following criteria:


Step 4: Create a segment for the Purchase Completed event with the following criteria:


Step 5: Provide the list ID or segment name for the lists/segments you created to Regal by emailing [email protected]

Step 6: Create a Klaviyo API key for Regal and email it to [email protected]

  1. Click on your company name on the top right corner of your Klaviyo account
  2. Click the Settings dropdown
  3. Select API Keys
  1. Click Create Private API Key button.
  1. Name the key "Regal"
  2. Click on the eye icon to reveal your API key
  3. Copy the API key and email it to [email protected]