Skip to main content

Klaviyo

Segment customers in Klaviyo and add extra data to their profiles, based on the answers they provide to survey questions.

Traian avatar
Written by Traian
Updated over 2 weeks ago

This integration in only available on the Basic and Pro plans.

Klaviyo Private API Key

  1. Navigate to Settings > API Keys, and click on Create Private API Key

  2. Choose a name (e.g. Pathlight), sellect Custom Key and provide Full Access to Events and Profiles. Alternatively, select Full Access Key. Please note that it's essential you provide access to Events and Profiles, otherwise Pathlight will not be able to publish events or update profiles based on provided answers.

  3. Copy the newly created key and paste it in Pathlight, under Integrations > Klaviyo

Events

Pathlight send a new event to Klaviyo everytime a customer answered a question.

The event is called Pathlight: Survey Question Answered and it can be found under the customer's profile.

Event Properties

  • surveyName - the name of the survey

  • surveyId - the ID of the survey

  • question - the question that was asked

  • questionId - the ID of the question

  • answer - the answer that was provided (if the question is multi-choice, the answers are concatenated in a single string, separated by commas)

  • answers - an array of all answers that were provided (useful only for multi-choice questions)

  • questionType - the type of question that was asked (e.g. single_choice, multi_choice etc.)

  • store - the store in which the survey was served

  • customerId - the ID of the customer (if available)

  • orderId - the ID of the order that triggered the survey

  • channel - where the survey was served (e.g. online_store, pos)

  • answerTimestamp - when the answer was provided

Customer Profiles

Additionally, all questions and answers are added to the customer profile in Klaviyo as custom properties.

Create Custom Flows

You can now start sending custom emails to customers based on their dynamic properties and behaviors (e.g. by segmenting them based on the answers they have provided in Pathlight surveys).

  1. Navigate to Audience > Lists & segments, click on Create New and select Create segment

  2. Choose a name for the segment (e.g. TikTok Customers). For the definition choose What someone has done (or not done). From the following dropdowns choose the condition:

    Person has Pathlight: Survey Question Answered at least once over all time

    where answer equals TikTok

  3. Once the segment is created, you can target all customers in that segment in your flows, by selecting that segment as a trigger. When selecting the trigger, choose All triggers > Added to segment. Then select the segment you want to target.

Did this answer your question?