> For the complete documentation index, see [llms.txt](https://help.littledata.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.littledata.io/integrations/shopify-klaviyo/littledata-klaviyo-installation-guide.md).

# Shopify to Klaviyo installation guide

This guide shows you how to connect your Shopify store to the Klaviyo destination in the Littledata app. It also shows you how to switch your Klaviyo flows to Littledata triggers.

### Before you start

* You have the Littledata app installed on your Shopify store, with Shopify connected as a source.
* You have an **Owner**, **Admin** or **Manager** role in the Klaviyo account you want to connect. Analyst and other roles can't add integrations, so the connection step will fail for them.
* You can create and edit flows in that Klaviyo account.

### Connect Klaviyo

{% stepper %}
{% step %}

#### Add the destination

Open the Littledata app and click **Add destination**. The **Destinations** page opens.
{% endstep %}

{% step %}

#### Choose Klaviyo

Under **Available in your plan**, find **Klaviyo** and click **Connect**. The setup opens on the **Connect your store to Klaviyo** screen.
{% endstep %}

{% step %}

#### Read the overview

Read the short overview, then click **Continue**.
{% endstep %}

{% step %}

#### Start the Klaviyo connection

On **Connect your Klaviyo account**, click **Connect**. Klaviyo opens in a new tab. Sign in if Klaviyo asks you to. If you manage several Klaviyo accounts, make sure you're signed in to the one for this store.
{% endstep %}

{% step %}

#### Allow access in Klaviyo

On the **Allow Littledata to access your account's information** page, check the account name at the top first. If it's the wrong account, click **Switch account** and pick the right one. The page lists the data Littledata will be able to access. Then click **Allow**.

If you click **Deny** or close the tab, go back to the Littledata app and click **Connect** again.
{% endstep %}

{% step %}

#### Go back to the Littledata app

Return to the Littledata app tab. You'll see **Klaviyo account connected** and your account name. Click **Continue**.
{% endstep %}

{% step %}

#### Wait for tracking to install

You'll see **Adding tracking** while Littledata adds its tracking scripts and webhooks to your store. This moves on by itself.
{% endstep %}

{% step %}

#### Verify your connection

On **Verify your connection**, click **Verify**. Littledata sends test events to your Klaviyo account. This confirms the connection works and makes the Littledata events available as flow triggers.

When it's done, you'll see **You're connected! Here's where to go next.**

{% hint style="info" %}
Test events won't affect your existing campaigns.
{% endhint %}
{% endstep %}
{% endstepper %}

### Create new flows using Littledata triggers

To measure the connection properly, clone your existing flows and switch them to Littledata triggers. Do this for each flow that should use Littledata data.

Littledata triggers are Klaviyo metrics whose names end in "- Littledata", for example **Checkout Started - Littledata** or **Placed Order - Littledata**. They sit right next to Shopify's own metrics with almost the same name (**Checkout Started**, **Placed Order**), so always check for the "- Littledata" ending.

{% hint style="warning" %}
You can only switch flows that are triggered by a metric, such as checkout started or order placed. Klaviyo doesn't let you change the trigger type, so flows triggered by a list or segment (for example a welcome series) keep their trigger. Littledata triggers appear only after you've clicked **Verify** in the Littledata app.
{% endhint %}

{% stepper %}
{% step %}

#### Open your flows

Sign in to Klaviyo and click **Flows** in the left menu. Use the search box to find the flow.

Each flow shows its trigger metric under its name. A flow that shows **Checkout Started** uses Shopify's trigger. One that shows **Checkout Started - Littledata** already uses Littledata's.
{% endstep %}

{% step %}

#### Clone a flow

Click the **⋮** (three vertical dots) at the end of the flow's row and choose **Clone**. The same menu also has **Add to Composer**, **Edit details**, **Copy ID**, **Archive** and **Delete**: don't pick those.
{% endstep %}

{% step %}

#### Name the copy

The **Clone flow** panel opens. Keep **Clone to this account** selected (it's the default). Don't pick **Clone to multiple accounts** below it. In **Name of cloned Flow**, give the copy a name, for example add "Littledata" to the end. Then click **Continue**.

<figure><img src="https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-a8fb711fd505d06d081e4bae77112a3e0c26d6b8%2Fhc-klaviyo-clone-flow.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Pick the Littledata trigger

Choose the matching Littledata trigger, the one ending in "- Littledata" (for example **Checkout Started - Littledata**, not **Checkout Started**). Then finish the clone.
{% endstep %}

{% step %}

#### Review the new flow

Open the cloned flow. Check its trigger, filters, timing and messages. Pay attention to trigger and profile filters: some use properties of the old trigger metric, so they may need updating for the Littledata metric. Cloned messages start in **Draft**.
{% endstep %}

{% step %}

#### Turn on the new flow

In the new flow, click **Review and turn on** at the top right. Choose **Live**, select **Update status now** and click **Save**. Don't pick **Schedule** unless you want the switch to happen later.
{% endstep %}

{% step %}

#### Turn off the old flow

Open the old flow and click **Update status** at the top right. Choose **Manual** (or **Draft**), select **Update status now** and click **Save**.

Do this right after turning on the new flow, so no customer gets both messages or neither.

{% hint style="info" %}
Keep the old flow (turned off) instead of deleting it if you want to keep its past reports.
{% endhint %}
{% endstep %}
{% endstepper %}

### Check that it works

{% stepper %}
{% step %}

#### Check the Littledata app

Open the Littledata app home page. The **Klaviyo** card shows **Connected**.
{% endstep %}

{% step %}

#### Check Klaviyo

In Klaviyo, go to **Analytics** > **Metrics**. Click **Integration** and choose Littledata to see only Littledata's metrics. Open one to see the test event sent during setup.
{% endstep %}
{% endstepper %}

### Related articles

* [Set up your Klaviyo flows using Littledata's triggers](https://help.littledata.io/integrations/shopify-klaviyo/set-up-klaviyo-flows)
* [How it works: Shopify to Klaviyo](https://help.littledata.io/integrations/shopify-klaviyo/how-it-works-shopify-to-klaviyo)
* [Klaviyo](https://help.littledata.io/integrations/shopify-klaviyo)
