Klaviyo

How to easily add a SparkLoop referral program to your email-list or newsletter in Klaviyo.

Custom Fields

When you create a campaign in SparkLoop a bunch of custom fields are automatically added to subscribers in your Klaviyo account:

Custom Field

Merge Tag

Description

RH_SUBID

{{person|lookup:'RH_SUBID'}}

Subscriber's ID.

RH_CODE

{{person|lookup:'RH_CODE'}}

Subscriber's referral code.

RH_REFLINK

{{person|lookup:'RH_REFLINK'}}

Subscriber's referral link.

RH_ISREF

{{person|lookup:'RH_ISREF'}}

Whether or not the subscriber has been referred. "YES" or "NO".

RH_ISSHARER

{{person|lookup:'RH_ISSHARER'}}

Whether or not the subscriber has shared the link. "YES" or "NO".

RH_TOTREF

{{person|lookup:'RH_TOTREF'}}

Subscriber's total number of referrals.

RH_LASTREF

{{person|lookup:'RH_LASTREF'}}

Date of the last subscriber's referral.

RH_COUPON

{{person|lookup:'RH_COUPON'}}

Subscriber's most-recently-won coupon code.

RH_LASTREWARD

{{person|lookup:'RH_LASTREWARD'}}

The ID of the last reward won by this subscriber.

RH_SUBPAGE

{{person|lookup:'RH_SUBPAGE'}}

Whether or not the subscriber has signed up via Sparkloop subscribe page. "YES" or "NO".

Using SparkLoop's custom fields in your newsletter

A common need for people is to add a section in their newsletter (usually at the bottom) with each subscriber's referral link and a number of referrals. Here's an example from The Morning Brew:

You can achieve the same result in your newsletter by adding the corresponding merge tags, like this:

When you send your newsletter the merge tags will be automatically replaced with each subscriber's total number of referrals and referral link.

Segments

SparkLoop makes it easy for you to segment your subscribers and send them targeted messages, for example:

  • send a message to all subscribers who have been referred

  • send a message to subscribers who have 3 referrals or more

You can set up these segments very easily using SparkLoop-generated custom fields, in particular: RH_ISREF, and RH_TOTREF.

Create new segments in Klaviyo like this: