Skip to main content
When you finish, Datalyr attributes Klaviyo email and SMS clicks. Shopify stores can also import campaign and flow revenue reports.

Before you start

You do not need Shopify or a conversion metric for click attribution.

Connect Klaviyo

1

Open Sources

Open Sources. Find the Klaviyo card.
2

Start the connection

Select connect.
3

Sign in

Sign in to the Klaviyo account that you want to connect.
4

Approve access

Review the access request. Select Continue.
5

Confirm the account

Return to Datalyr. Confirm that the Klaviyo panel shows the correct account.
Datalyr uses OAuth, so you do not supply a private API key. The connection refreshes its authorization automatically.

Set up click attribution

1

Open the Klaviyo panel

Select the connected Klaviyo card in Sources.
2

Configure the tracking settings

Select Set up click attribution.
3

Check the result

Confirm that Attribution reads Ready.
Datalyr writes three custom parameters to the Klaviyo account tracking settings. Datalyr reads the settings again before it shows Ready. Datalyr keeps all existing UTM parameters. You do not add these parameters to each message. New messages use the account tracking settings by default. Klaviyo does not add the parameters when message tracking is off. The web tracker removes dl_kprofile_id from the browser address after it records the value. The next event stores it as external_ids.klaviyo. If marketing consent is denied, Datalyr removes the parameter and does not store the Klaviyo Profile ID.

Add Shopify revenue reporting

Skip this section if you only need click attribution. SaaS and other non-Shopify businesses do not need a conversion metric.
1

Open Klaviyo metrics

In Klaviyo, open Analytics → Metrics.
2

Find the Shopify metric

Confirm that Placed Order has the Shopify icon.
3

Open the Datalyr source

In Datalyr, open Sources, and then select the connected Klaviyo card.
4

Refresh the metric list

If Datalyr does not show Placed Order, select Refresh metrics.
5

Select the conversion metric

Select Placed Order from Shopify.
Datalyr imports these Klaviyo campaign and flow fields: Klaviyo calculates Placed Order value as subtotal plus shipping, less discounts. Klaviyo does not subtract canceled or refunded orders. The reported value is gross placed-order revenue. It is not net revenue after cancellations and refunds.

Verify click attribution

1

Create a test message

Create a Klaviyo test message that uses the account tracking settings.
2

Add a tracked link

Add a link to a page that has the Datalyr web tracker.
3

Send the message

Send the message to your test recipient.
4

Open the link

Select the link in the received message.
5

Open attribution

In the Klaviyo source panel, select Open attribution.
6

Find the visit

Select a date range that includes the test. Confirm that Klaviyo appears as the source.
For Shopify reporting, return to the Klaviyo source panel after the next data sync. Confirm that the last 30 days show message metrics.

When it does not work

Disconnect Klaviyo

Open Sources. On the connected Klaviyo card, select the control labeled Disconnect. Datalyr stops the Klaviyo reporting sync. Datalyr also removes the imported Klaviyo reporting data for that connection.

Next