Skip to main content

Klaviyo Integration

Written by Stefania

Image showing the Klaviyo logo

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:

  1. Connect Klaviyo to Lantern

  2. Connect Klaviyo to your quiz

Step 1: Connect Klaviyo to Lantern

  1. Open Lantern from your Shopify admin

  2. Go to the Integrations tab

  3. Click Connect on the Klaviyo card

    Image showing the Lantern app Integrations tab with the Klaviyo card and the Connect button indicated by an arrow.

  4. In the popup, click Connect Klaviyo

    Image showing the Connect Klaviyo popup with the Connect Klaviyo button indicated by an arrow.

  5. You will be redirected to Klaviyo

  6. Log in and click Allow to grant permissions

    Image showing the Klaviyo permissions screen with the Allow button indicated by an arrow to grant access to Lantern.

Once completed, you'll be redirected to the Lantern Integrations page, where Klaviyo should now show up as Connected.

Image showing the Lantern app Integrations page with the Klaviyo card displaying a Connected status.

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

To start collecting data from a quiz, you need to connect it to a Klaviyo list.

In Klaviyo

  1. In Klaviyo, go to Audience → Lists & Segments

  2. Click Create and select List

    Image showing the Klaviyo dashboard under Audience, Lists & Segments, with the Create menu expanded and the List option indicated by an arrow.

  3. Name your list and click Create List

    Image showing the Klaviyo Create List screen with the list name field filled and the Create List button indicated by an arrow.

  4. Open your list and go to Settings

  5. Copy the List ID

    Image showing the Klaviyo list settings page with the List ID indicated by an arrow for copying.

In Lantern

  1. Open your quiz

  2. Go to More Integrations

  3. Find Klaviyo and click Activate

    Image showing Lantern quiz editor on the “More Integrations” step, with Klaviyo listed and “Activate” button highlighted

  4. Paste your List ID

  5. Click Save and republish your quiz

    Image of Lantern Klaviyo integration settings showing a “List ID” field populated with Up8FAc and a Save button to confirm.

Make sure the Quiz contains an Optin Page.

If your quiz does not already include one, you can add it by clicking + Add Page in the Quiz Builder and selecting Opt-in Page.

Image of Lantern quiz builder interface illustrating how to add an Optin Page – “Optin Page” selected as the page type and an example email capture page.

Once this is set up, customers who complete the quiz and submit their email will be added to your selected Klaviyo list.

In Klaviyo, each customer profile will include a Completed Lantern Quiz (v2) event with their quiz answers and recommended products.

Image showing Klaviyo profile page (user detail view) with the Activity Log on the right showing “Completed Lantern Quiz (v2)” events (highlighted in yellow) containing quiz results data

To the left of the Activity Log , you will find Custom Properties which is a detailed list of all information synched from the quiz such as Questions and their Answers, Product Results with Price, Currency, Product ID, Product Name, and Product URL.

This more granular information that will help you write personalized e-mail recommendations through Klaviyo Email Flows.

Image showing Klaviyo profile page with the “Custom properties” panel (highlighted) listing detailed quiz data such as Source (Lantern), quiz question answers, recommended products, etc.

Please note that data coming in from the quiz completions inside Klaviyo is organized in alphabetical order, which is why Answers are at the top of the list and Questions at the bottom.

In case you need step by step instructions on how to create segments in Klaviyo, that is documented in this help article.

Image with a text and link to a help article about how to send customize klaviyo email designs

Did this answer your question?