How to Leverage Friendbuy's Fivetran Integration

With Friendbuy and Fivetran together, you can seamlessly extract, transform and load referral and loyalty program data into your data warehouse.

The Fivetran platform manages the world’s largest workloads with numerous database replication methods (including change data capture) to power your real-time, low-impact data movement.

How to Set up the Friendbuy and Fivetran Integration

Prerequisites

To connect Friendbuy to Fivetran, you need a Fivetran account.

Setup instructions

  1. Log in to your Friendbuy account.
  2. In the Developer Center section, go to the API Keys tab and make a note of the API Key. You will need it to configure Fivetran.
    Click API Keys
  3. Go to the Friendbuy Code tab and make a note of the Secret Key. You will also need it to configure Fivetran.
    Click Developer Center
  4. In Fivetran's connector setup form, enter your chosen Destination schema name.
  5. Enter the API Key and API Secret you found in Steps 1 and 2.
  6. Click Save & Test. Fivetran will take it from here and sync your Friendbuy data.

Features

FEATURE NAME
SUPPORTED
NOTES

Capture deletes

Yes

All tables

Custom data

Data blocking

Yes

Column level

Column hashing

Yes

Re-sync

Yes

Connector level

History

API configurable

Yes

API configuration

Priority-first sync

Fivetran data models

Private networking

Sync Overview

To capture new records, Fivetran will incrementally sync the following tables:

  • CLICK
  • DISTRIBUTED_ADVOCATE_REWARD
  • DISTRIBUTED_FRIEND_INCENTIVE
  • EMAIL_CAPTURE
  • PURCHASE
  • SHARE
  • SIGNUP
  • WIDGET_VIEW

Schema information

Legend

🔑    =   primary key

➤     =   foreign key relation

⇱     =   external link

DISTRIBUTED_FRIEND_INCENTIVE  ⇱ 

friend_email 🔑 

campaign_id ▶ WIDGET_VIEW

referral_code ▶ SHARE

advocate_name

campaign_name

coupon_code

friend_name

incentive_amount

incentive_type

trigger

DISTRIBUTED_ADVOCATE_REWARD ⇱ 

fivetran_id 🔑 

campaign_id ▶ WIDGET_VIEW

referral_code ▶ SHARE

advocate_customer_id

advocate_name

friend_customer_id

reward_amount

reward_type

trigger

CLICK ⇱ 

destination_url 🔑 

campaign_id  ▶ WIDGET_VIEW

referral_code ▶ SHARE

advocate_name

PURCHASE  ⇱ 

order_id 🔑 

campaign_id ▶ WIDGET_VIEW

referral_code ▶ SHARE

advocate_email 

email  

advocate_name

amount

customer_id 

coupon_code

name

new_customer

PURCHASE_PRODUCT ⇱ 

index  🔑

order_id  ▶ PURCHASE

name

price

quantity

sku

EMAIL_CAPTURE ⇱ 

fivetran_id 🔑

campaign_id ▶ WIDGET_VIEW

campaign_name

created_on

email

email_capture_type

ip_address

name

newsletter_opt_in

WIDGET_VIEW  

campaign_id 🔑

created_on 🔑 

customer_id ▶ SIGNUP

campaign_name

ip_address

user_agent

widget_name

widget_type

SHARE  

created_on  🔑 

referral_code 🔑 

campaign_id ▶ WIDGET_VIEW

advocate_email

channel

LEDGER_HEAD ⇱ 

currency 🔑

customer_id 🔑 ▶  SIGNUP 

current_balance

SIGNUP ⇱ 

created_on 🔑 

customer_id  🔑 

campaign_id ▶ WIDGET_VIEW

referral_code ▶ SHARE

advocate_customer_id

advocate_email 

advocate_name

campaign_name

channel

name

new_customer

user_agent

How did we do?

Fivetran Integration Setup Guide

Contact