Klaviyo dbt Package
This dbt package transforms data from Fivetran's Klaviyo connector into analytics-ready tables.
Resources
- Number of materialized models¹: 18
- Connector documentation
- dbt package documentation
What does this dbt package do?
This package enables you to better understand the efficacy of your email and SMS marketing efforts. It creates enriched models with metrics focused on last-touch attribution, user interactions, and revenue attribution.
Output schema
Final output tables are generated in the following target schema:
<your_database>.<connector/schema_name>_klaviyo
Final output tables
By default, this package materializes the following final tables:
| Table | Description |
|---|---|
| klaviyo__events | Tracks all customer events with customizable last-touch attribution connecting events to email campaigns and flows, plus user information to analyze engagement and conversion paths. Example Analytics Questions:
|
| klaviyo__person_campaign_flow | Aggregates person-level engagement with specific campaigns or flows including total attributed revenue and conversion event counts to measure marketing effectiveness at the individual level. Example Analytics Questions:
|
| klaviyo__campaigns | Summarizes campaign performance with user interaction metrics including opens, clicks, bounces, and attributed revenue to evaluate email campaign effectiveness. Example Analytics Questions:
|
| klaviyo__flows | Tracks automated flow performance with user interaction metrics and attributed revenue to understand how email automation drives engagement and conversions. Example Analytics Questions:
|
| klaviyo__persons | Provides a complete view of each customer with lifetime engagement metrics across campaigns and flows, attributed and organic revenue, and recent activity patterns. Example Analytics Questions:
|
¹ Each Quickstart transformation job run materializes these models if all components of this data model are enabled. This count includes all staging, intermediate, and final models materialized as view, table, or incremental.
Prerequisites
To use this dbt package, you must have the following:
- At least one Fivetran Klaviyo connection syncing data into your destination.
- A BigQuery, Snowflake, Redshift, PostgreSQL, or Databricks destination.
How do I use the dbt package?
You can either add this dbt package in the Fivetran dashboard or import it into your dbt project:
- To add the package in the Fivetran dashboard, follow our Quickstart guide.
- To add the package to your dbt project, follow the setup instructions in the dbt package's README file to use this package.
How is this package maintained and can I contribute?
Package Maintenance
The Fivetran team maintaining this package only maintains the latest version of the package. We highly recommend you stay consistent with the latest version of the package and refer to the CHANGELOG and release notes for more information on changes across versions.
Contributions
A small team of analytics engineers at Fivetran develops these dbt packages. However, the packages are made better by community contributions.
We highly encourage and welcome contributions to this package. Learn how to contribute to a package in dbt's Contributing to an external dbt package article.