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




Subscriber's ID.



Subscriber's referral code.



Subscriber's referral link.



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



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



Subscriber's total number of referrals.



Date of the last subscriber's referral.



Subscriber's most-recently-won coupon code.



The ID of the last reward won by this subscriber.



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.


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: