Klaviyo

Guide to integrate your Klaviyo with Sprinkle

Datasource Concepts

Before setting up the datasource, learn about datasource concepts here

Step by Step Guide

STEP-1: Configure Connection

To learn about Connection, refer here

  • Log into Sprinkle application

  • Navigate to Datasources -> Connections Tab -> New Connection ->

  • Select Klaviyo

  • Provide all the mandatory details

    • Name: Name to identify this connection

    • API Key: Enter API key provided by klaviyo. To find out how to get the API key in klaviyo, click here

  • Test Connection

  • Create

STEP-2: Configure Datasource

To learn about datasource, refer here

  • Navigate to Datasources -> Datasources Tab -> Add ->

  • Select Klaviyo

  • Provide the name -> Create

  • Connection Tab:

    • From the drop-down, select the name of connection created in STEP-2

    • Update

STEP-3: Create Dataset

Datasets Tab: To learn about Dataset, refer here. Add Dataset for each report/dataset that you want to integrate, providing following details

  • Report Type (Required): Select from the drop-down

    • Global_Exclustions

    • Lists

    • Segments

    • Campaigns

    • Email_Templates

  • Flatten Level(Required) : Select One Level or Multi Level. In one level, flattening will not be applied on complex type. They will be stored as string. In multi level, flattening will be applied in complex level till they become simple type.

  • Destination Schema (Required) : Data warehouse schema where the table will be ingested into

  • Destination Table name (Required) : It is the table name to be created on the warehouse. If not given, sprinkle will create like ds_<datasourcename>_<tablename>

  • Destination Create Table Clause: Provide additional clauses to warehouse-create table queries such as clustering, partitioning, and more, useful for optimizing DML statements. Learn more on how to use this field.

  • Create

STEP-4: Run and schedule Ingestion

In the Ingestion Jobs tab:

  • Trigger the Job, using Run button

  • To schedule, enable Auto-Run. Change the frequency if needed

Dataset Fields

User can pick following fields in datasets

email_templates
  • object

  • id

  • name

  • html

  • is_writeable

  • created

  • updated

metric_timeline
  • object

  • id

  • name

  • html

  • is_writeable

  • created

  • updated

campaigns
  • object

  • id

  • name

  • subject

  • from_email

  • from_name

  • lists_0__object

  • lists_0__id

  • lists_0__name

  • lists_0__list_type

  • lists_0__created

  • lists_0__updated

  • lists_0__person_count

  • excluded_lists

  • status

  • status_id

  • status_label

  • send_time

  • created

  • updated

  • num_recipients

  • campaign_type

  • is_segmented

  • message_type

  • template_id

  • sent_at

segments
  • object

  • id

  • name

  • list_type

  • created

  • updated

  • person_count

lists
  • object

  • id

  • name

  • list_type

  • created

  • updated

  • person_count

global_exclusions
  • object

  • email

  • timestamp

  • reason

Last updated