> ## Documentation Index
> Fetch the complete documentation index at: https://formsplugin.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Klaviyo

> Connect Klaviyo with Framer Forms using the Forms Plugin to add form submissions to your Klaviyo profiles, with optional list subscription and double opt-in.

# Connect Klaviyo with Framer Forms

Capture leads from your Framer forms and automatically add them to your Klaviyo profiles using the Forms Plugin.

Setup takes seven steps. Steps 1 to 4 connect the form. Steps 5 and 6 are only needed if you want visitors to be subscribed to your marketing email. Step 7 checks that everything works.

***

## Step 1 - Get Your Klaviyo API Key

Before connecting Klaviyo to your form, generate an API key from your Klaviyo account. This API key allows the Forms Plugin to securely send form submissions to Klaviyo.

![Klaviyo account showing the API Keys settings page](https://mintcdn.com/formsplugin/nuH6w9HyT7O56VW4/images/screenshots/integrations/klaviyo/klaviyo-step1-api-key.png?fit=max\&auto=format\&n=nuH6w9HyT7O56VW4\&q=85\&s=25e9e114f703e803861d8baee376643d)

1. Login to your Klaviyo account
2. Navigate to **Settings** → **API Keys**
3. Click **Create Private API Key**
4. Grant it the `profiles:write` and `lists:write` scopes. Add `subscriptions:write` too if you plan to use **Subscribe** (Step 5)
5. Copy the generated API key

> [!TIP]
>
> Keep your API key in a secure password manager. Never share it publicly or commit it to a code repository.

***

## Step 2 - Insert Klaviyo Component Into Your Form

Select your form in the Framer canvas and insert the Klaviyo component.

The component connects your form to Klaviyo. You tell it which form fields to send in Step 4.

![Forms Plugin panel in Framer showing the Klaviyo Integrations screen with the Insert Klaviyo Component button](https://mintcdn.com/formsplugin/nuH6w9HyT7O56VW4/images/screenshots/integrations/klaviyo/klaviyo-step2-insert-component.png?fit=max\&auto=format\&n=nuH6w9HyT7O56VW4\&q=85\&s=ba5d4b94e0d613c650d8b1a27dce92e1)

***

## Step 3 - Configure Klaviyo API Settings

After inserting the Klaviyo component, configure the API settings in the component properties panel.

![Framer canvas with Klaviyo component selected showing the API Settings modal](https://mintcdn.com/formsplugin/k8VmN6UTFugoE8yJ/images/screenshots/integrations/klaviyo/klaviyo-step3-api-settings.png?fit=max\&auto=format\&n=k8VmN6UTFugoE8yJ\&q=85\&s=db6750a04b6dc76662e5b6baf4f58f4f)

1. Select the **Klaviyo Integration** component in your form
2. Open the properties panel on the right side
3. Paste your **Klaviyo API Key**
4. (Optional) Enter a **List ID** to add submitted profiles to a specific Klaviyo list
5. Choose whether to **Update Existing** profiles if the email already exists in your Klaviyo account

**Subscribe** and **Consent Field** are in the same panel. Leave them for now; they are covered in Steps 5 and 6.

### Required Fields

* **API Key** - Paste the Klaviyo Private API key (starts with `pk_...`) generated from your Klaviyo account.

### Optional Fields

* **List ID** - Enter a Klaviyo List ID (6 chars, e.g. `XaB1Cd`) to add submitted profiles to that list. Leave this empty to create profiles without adding them to a list.
* **Update Existing** - When set to **Yes**, existing profiles will be updated if the submitted email already exists in Klaviyo. Set to **No** to skip updates and only create new profiles.
* **Subscribe** - Defaults to **No**. See [Step 5](#step-5-choose-subscription-and-double-opt-in).
* **Consent Field** - Optional, and only used when **Subscribe** is **Yes**. The **Name** of a consent checkbox on your form. When set, a profile is subscribed only if the visitor ticked that box. Leave it empty and every submission counts as consent. See [Step 6](#step-6-optional-add-a-consent-checkbox).

### Find your List ID

In Klaviyo, go to **Audience** → **Lists & segments** and open the list you want to use. Click the **Settings** tab, then **Details**. Copy the value under **List ID** with the copy button next to it.

![Klaviyo list Settings tab, Details section, showing the List name and the List ID with a copy button](https://mintcdn.com/formsplugin/JTpRPFL4udD0nidE/images/screenshots/integrations/klaviyo/klaviyo-list-id.png?fit=max\&auto=format\&n=JTpRPFL4udD0nidE\&q=85\&s=39cf9cd0e2b219417893a9cc706ac92c)

***

## Step 4 - Configure Field Mapping

Map your form fields to Klaviyo profile properties.

Add one mapping row per field you want to send. Enter the `name` attribute of your form field on the left and the Klaviyo property it should populate on the right. Mappings are entered manually - the component does not read your form's fields for you. At least one mapping must target `email`.

![Framer canvas showing the Mappings modal with form fields mapped to Klaviyo properties](https://mintcdn.com/formsplugin/nuH6w9HyT7O56VW4/images/screenshots/integrations/klaviyo/klaviyo-step4-field-mapping.png?fit=max\&auto=format\&n=nuH6w9HyT7O56VW4\&q=85\&s=a2151faf313e59985173ce135c51a99a)

### Example Mapping

| Form Field | Klaviyo Property |
| - | - |
| email | email |
| firstname | first\_name |
| lastname | last\_name |

Other common Klaviyo properties are `phone_number`, `organization` and `title`. Form field names are matched without regard to upper or lower case.

> [!NOTE]
>
> You do not need to map the consent checkbox from Step 6. It is read through **Consent Field**, not through a mapping.

***

## Step 5 - Choose Subscription and Double Opt-in

Klaviyo tracks two separate things for every person: whether they are **in a list**, and their **consent status**. Adding someone to a list does not give consent, which is why a profile can appear in a list while still showing a **Never subscribed** warning.

The **Subscribe** setting in the Klaviyo component's **API Settings** decides whether consent is recorded:

| Subscribe | What Klaviyo records | Opt-in email |
| - | - | - |
| **No** (default) | Profile is created or updated, and added to the list if you set a **List ID**. Consent is untouched, so the profile stays **Never subscribed** and Klaviyo will not send it campaigns. | Never sent |
| **Yes** | Marketing consent is recorded, so the profile becomes **Subscribed** - or **Pending** if that list uses double opt-in. | Sent by Klaviyo when the list uses double opt-in |

If you only want to collect contacts, keep **Subscribe** on **No** and skip to [Step 7](#step-7-test-and-check-the-result).

> [!WARNING]
>
> Only turn **Subscribe** on when the form genuinely asks for marketing consent. Enabling it on a contact or support form subscribes people who never asked for email, which is not permitted under GDPR. For forms that serve both purposes, add a consent checkbox as shown in Step 6.

> [!TIP]
>
> Using **Subscribe** requires the `subscriptions:write` scope on your API key. If the key is missing it, submissions fail with a message telling you to regenerate the key in Klaviyo.

### Turn on double opt-in

With double opt-in, a new subscriber first gets a confirmation email from Klaviyo and only becomes **Subscribed** after clicking the link in it. Until then the profile shows as **Pending**. This proves the email address is real and that its owner asked to join.

Double opt-in is **not** configured in Framer. It is a setting on the Klaviyo list itself, and the Forms Plugin follows it automatically.

1. In Klaviyo, go to **Audience** → **Lists & segments** and open your list
2. Click the **Settings** tab, then **Consent**
3. Under **Opt-in process**, choose **Double opt-in** (or **Single opt-in** to subscribe people straight away, with no confirmation email)

![Klaviyo list Settings tab, Consent section, showing the Opt-in process choice between Double opt-in and Single opt-in](https://mintcdn.com/formsplugin/JTpRPFL4udD0nidE/images/screenshots/integrations/klaviyo/klaviyo-double-opt-in-setting.png?fit=max\&auto=format\&n=JTpRPFL4udD0nidE\&q=85\&s=97c8375ac9b29d231c1f674dd3f51645)

4. (Optional) Open the **Consent pages** tab of the same list to change the confirmation email and the pages people see when they subscribe. Click **Customize for this List** to give this list its own version, or keep the account defaults.

![Klaviyo list Consent pages tab with the Go to default pages and Customize for this List buttons](https://mintcdn.com/formsplugin/JTpRPFL4udD0nidE/images/screenshots/integrations/klaviyo/klaviyo-consent-pages.png?fit=max\&auto=format\&n=JTpRPFL4udD0nidE\&q=85\&s=c871fa8b9c6b0025f34d52000acd5062)

> [!NOTE]
>
> Double opt-in only applies when **Subscribe** is **Yes** on the Klaviyo component. With **Subscribe** off, nobody is subscribed, so no confirmation email is ever sent.

***

## Step 6 - (Optional) Add a Consent Checkbox

Use this when the form is not only a newsletter sign-up. Example: you have a contact form and want to grow your newsletter from it, but only with people who actually ask for it. A consent checkbox lets each visitor decide.

### 1. Add a checkbox to your form

Open **Forms Plugin**, go to **Fields** → **Basic** and click **Checkbox** to add it to your form. Then select the checkbox on the canvas and, in its properties panel:

* Set its **Name** to `checkbox`. This is the value you will enter in **Consent Field**.
* Give it clear label text, for example `Yes, send me news and offers by email`
* Leave it **not required**, so the visitor can still send the form without subscribing
* Leave it **unticked** by default

![Framer form with an unticked consent checkbox labelled Yes, send me news and offers by email, placed above the Klaviyo component and the Submit button](https://mintcdn.com/formsplugin/JTpRPFL4udD0nidE/images/screenshots/integrations/klaviyo/klaviyo-consent-checkbox.png?fit=max\&auto=format\&n=JTpRPFL4udD0nidE\&q=85\&s=6742ad3725bb1401a26e945b5eeec105)

### 2. Connect the checkbox to the Klaviyo component

Select the **Klaviyo Integration** component and, under **API Settings**, set:

* **Subscribe** - **Yes**
* **Consent Field** - `checkbox` (the same **Name** you gave the checkbox)

![Framer canvas with the Klaviyo Integration component selected and the API Settings panel open, showing Subscribe set to Yes](https://mintcdn.com/formsplugin/JTpRPFL4udD0nidE/images/screenshots/integrations/klaviyo/klaviyo-subscribe-settings.png?fit=max\&auto=format\&n=JTpRPFL4udD0nidE\&q=85\&s=cdfb1760d802419692ec2ba581c8d36f)

![Klaviyo API Settings panel with Subscribe set to Yes and Consent Field set to checkbox](https://mintcdn.com/formsplugin/JTpRPFL4udD0nidE/images/screenshots/integrations/klaviyo/klaviyo-consent-field.png?fit=max\&auto=format\&n=JTpRPFL4udD0nidE\&q=85\&s=34da395aa912cc1f505538e64f872fcf)

### 3. What happens when the form is sent

| Visitor | What Klaviyo records |
| - | - |
| Ticks the checkbox | Profile is created or updated and marked **Subscribed**, or **Pending** until they confirm the opt-in email if the list uses double opt-in |
| Leaves it unticked | Profile is still created or updated, but no marketing consent is recorded. It stays **Never subscribed** and does not receive campaigns |

Every visitor still reaches you through the form. Only the ones who ticked the box join your marketing audience.

> [!WARNING]
>
> Do not make the consent checkbox **Required** and do not tick it by default. Consent must be a free choice by the visitor, and Klaviyo does not accept consent that was pre-selected or forced.

> [!TIP]
>
> The **Consent Field** value must match the checkbox **Name**, not its label. If the names do not match, the box is never found and nobody is subscribed.

***

## Step 7 - Test and Check the Result

When the Klaviyo component is set up, it shows **Integration active** on the canvas.

![Completed Klaviyo integration on a form with Integration active status](https://mintcdn.com/formsplugin/nuH6w9HyT7O56VW4/images/screenshots/integrations/klaviyo/klaviyo-step5-result.png?fit=max\&auto=format\&n=nuH6w9HyT7O56VW4\&q=85\&s=8482c6fd208d32402c64075e1f2801c2)

Publish your site and send a test submission. The details are added as a profile in Klaviyo. You can verify new profiles in your [Klaviyo Profiles dashboard](https://www.klaviyo.com/profiles).

To check consent, open the profile in Klaviyo (or open your list first if you set a **List ID**). The status is shown under **Channel consent** → **Email**:

* **Never subscribed** - **Subscribe** is off, or the visitor left the consent checkbox unticked
* **Pending** - the list uses double opt-in and the visitor has not clicked the confirmation link yet
* **Subscribed** - consent is recorded and the profile can receive campaigns

A visitor who was not subscribed shows **Never subscribed**:

![Klaviyo profile with the Channel consent card showing Email as Never subscribed](https://mintcdn.com/formsplugin/JTpRPFL4udD0nidE/images/screenshots/integrations/klaviyo/klaviyo-profile-never-subscribed.png?fit=max\&auto=format\&n=JTpRPFL4udD0nidE\&q=85\&s=e55b3410a88971961caab10ff9f6f9ea)

A subscribed visitor shows **Subscribed**, with the **Subscribed to** list and **Subscribed to Email Marketing** events in the activity feed:

![Klaviyo profile with the Channel consent card showing Email as Subscribed and Subscribed to list events in the activity feed](https://mintcdn.com/formsplugin/JTpRPFL4udD0nidE/images/screenshots/integrations/klaviyo/klaviyo-profile-subscribed.png?fit=max\&auto=format\&n=JTpRPFL4udD0nidE\&q=85\&s=79f95ee3b9d0417b642d4b572ba14cd9)

If you use a consent checkbox, send two test submissions, one ticked and one unticked, and check that each profile shows the expected status.

***

## Next Steps

* [Integrations Overview](https://formsplugin.com/docs/integrations/overview.md)
* [Contact Support](https://go.formsplugin.com/contact) if you need help


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.