Integrating with Klaviyo allows you to build personalized email campaigns based on your customers’ quiz answers.
To get started, make sure you have a Klaviyo account.
This integration is completed in two steps:
Connect Klaviyo to Lantern
Connect Klaviyo to your quiz
Step 1: Connect Klaviyo to Lantern
Open Lantern from your Shopify admin
Go to the Integrations tab
Click Connect on the Klaviyo card
In the popup, click Connect Klaviyo
You will be redirected to Klaviyo
Log in and click Allow to grant permissions
Once completed, you'll be redirected to the Lantern Integrations page, where Klaviyo should now show up as Connected.
Note: If you previously connected Klaviyo using API keys, you may see an option to upgrade to the new connection. We recommend switching to the new connection to ensure the integration continues to work as expected.
Step 2: Connect Klaviyo to your quiz
Once Klaviyo is connected, every quiz creates or updates a Klaviyo profile for each customer who leaves an email or phone number. Connect a quiz to a Klaviyo list if you also want those customers added to that list.
A List ID is optional. Customers are only added to a list, and subscribed, when the quiz has a List ID. Each profile's subscribed status depends on the customer's marketing consent and on whether the list is single or double opt-in. Learn more in Marketing Consent and Klaviyo Integration.
In Klaviyo
If you don't want customers added to a Klaviyo list, skip these steps and leave the List ID empty in Lantern.
In Klaviyo, go to Audience → Lists & Segments
Click Create and select List
Name your list and click Create List
Open your list and go to Settings
Copy the List ID
In Lantern
Open the quiz and go to More Integrations → Email marketing.
Find the Klaviyo card and click Activate.
Paste the List ID if you want to use a list.
4. Click Save. The change takes effect without republishing.
What Lantern sends to Klaviyo
Quiz completion event
Lantern sends a quiz-specific event named Completed Lantern Quiz (v2) - [quiz URL handle]. It contains the eligible quiz answers and recommended products for that submission. Use this event to trigger a results email or build a segment of people who completed a specific quiz.
If the shopper gives their email through Email Sign-up on the Results Page, Lantern creates or updates their profile and sends the event when they sign up. Any flow triggered by the event starts at that point.
Products from a named content block appear separately in the event as products_by_block.<block name>. To use these products as the row collection for a dynamic table in a Klaviyo email, enter a name in the block’s Block name (optional) field and republish the quiz. Dynamic Content Block Variants in Klaviyo
Profile properties
Open a Klaviyo profile and look under Custom Properties to find saved quiz data, such as answers and recommended product details. Klaviyo lists these properties alphabetically. That display order doesn’t change the order of answers or recommendations the shopper saw.
Choose which profile properties to save
All five Profile properties groups are checked by default. To change which groups a quiz saves:
Open the quiz and go to More Integrations → Email marketing → Klaviyo.
Click Activate if the Klaviyo card isn’t already open.
Under Profile properties, untick the groups you don’t need.
Click Save.
Checkbox | What it saves |
Optin Page fields |
|
Answers with a Property ID | Answers from questions with a Property ID or Klaviyo ID, saved under that identifier. For example, a question with the ID |
Numbered questions and answers |
|
Recommended products |
|
Content block results |
|
Changes apply to future submissions. Properties already saved on existing profiles stay there. The checkboxes affect profile properties only. The quiz completion event continues to include eligible answers and recommended products.
Before unticking a group, check whether your segments, flows or email templates use its properties. For example, a segment that relies on ProductName (1) will stop matching new contacts based on that property if the quiz stops saving it.
Give each quiz its own Source
Set a custom Source to distinguish subscribers from different quizzes on the same Klaviyo list.
Open the quiz and go to More Integrations.
On the Klaviyo card, find Source (optional) below List ID and enter a name, such as
Coffee finder quiz.Click Save. The change takes effect without republishing.
Lantern sets Source when the quiz subscribes someone to the list after you save. A blank field keeps the default Source, Lantern. Shoppers who decline marketing won’t receive the quiz’s Source, and a later sign-up through a Klaviyo form can replace it.
To segment everyone who completed a specific quiz, use its Completed Lantern Quiz (v2) - [quiz URL handle] event. This works regardless of the Source on the profile. Set up Klaviyo Segments














