Klaviyo to BigQuery

Opens, clicks and conversions from Klaviyo, by campaign or flow, in your own BigQuery dataset. Each run replaces the whole table.

  • One table per report, named after it: fs_campaign_performance, for example.
  • Refreshes every day on Plus, every 6 hours on Pro and every hour on Max.
  • Up to 1,000 rows a report.

30 days of Plus, free from sign-up. No card needed. Paid plans from £15 a month.

fs_campaign_performance
campaign_namedeliveredopens_uniqueconversions
Autumn blend launch11403308365
Holiday gift sets11525314466
Single origin drop11286286960
Brew guide10153291261
Welcome back9904263555
Example, with made-up figures

How to connect Klaviyo to BigQuery

You need a Google Cloud project with a BigQuery dataset, and access to the Klaviyo account.

  1. In Klaviyo, create a private API key with read access, then paste it on the Sources page.
  2. In Fresh Sheets, go to Destinations and choose Add a dataset. Enter the project ID and dataset ID.
  3. In Google Cloud, give the account Fresh Sheets shows you the BigQuery Data Editor role on your dataset, and add the label it shows.
  4. Back in Fresh Sheets, choose Check and add.
  5. Choose New report, pick Klaviyo and the account, then the report type, fields and date range.
  6. Under Destination, pick your dataset and name the table. Under Schedule, pick how often. Then Save and run.

Columns Klaviyo writes to BigQuery

Each report is one table: the columns you pick, plus _fs_written_at, the time the row landed. Money is in the account's own currency.

ColumnTypeFresh Sheets fieldAvailable at
campaign_nameSTRINGCampaignCampaign performance
campaign_idSTRINGCampaign IDCampaign performance
send_channelSTRINGChannelEvery level
tag_nameSTRINGTagCampaign performance
flow_nameSTRINGFlowFlow performance
flow_message_nameSTRINGMessageFlow performance
flow_idSTRINGFlow IDFlow performance
recipientsINT64RecipientsEvery level
deliveredINT64DeliveredEvery level
delivery_rateFLOAT64 (a fraction)Delivery rateEvery level
opens_uniqueINT64OpensEvery level
open_rateFLOAT64 (a fraction)Open rateEvery level
clicks_uniqueINT64ClicksEvery level
click_rateFLOAT64 (a fraction)Click rateEvery level
click_to_open_rateFLOAT64 (a fraction)Click to open rateEvery level
conversionsINT64ConversionsEvery level
conversion_rateFLOAT64 (a fraction)Conversion rateEvery level
bounce_rateFLOAT64 (a fraction)Bounce rateEvery level
unsubscribe_rateFLOAT64 (a fraction)Unsubscribe rateEvery level
spam_complaint_rateFLOAT64 (a fraction)Spam complaint rateEvery level

Each report counts conversions against the event you choose.

An example

A query for the report saved as Campaign performance:

SELECT campaign_name, SUM(delivered) AS delivered, SUM(opens_unique) AS opens_unique, SUM(conversions) AS conversions FROM `your-project.your_dataset.fs_campaign_performance` GROUP BY campaign_name ORDER BY delivered DESC;

Try it with your own Klaviyo data in BigQuery.

Other ways to do it

Google's BigQuery Data Transfer Service has a Klaviyo connector in preview, with no transfer charge while it's in preview.

Source: Google Cloud: Klaviyo transfers

Fresh Sheets sends the campaign and flow reports you build instead.

Questions

How do I connect Klaviyo to BigQuery?

Add a Klaviyo private API key with read access on the Sources page, add your dataset under Destinations, then build a campaign or flow report that sends to it. Klaviyo's figures have no date column, so each run replaces the whole table.

Send your Klaviyo reports to BigQuery

BigQuery is included in your 30 days of Plus, then on every paid plan.

30 days of Plus, free from sign-up. No card needed. Paid plans from £15 a month.

Paid plans from £15 a month, or £12 a month billed annually.