Official plugin. A referral program: each subscriber gets a personal link, and earns a reward at a set number of referrals.
- Enter the signup page address in the settings. The page needs a Broadcast form, or a form of your own (see below).
- Open Referrals and choose New referral. A reward has a name, a type (Physical, Digital or Promo Code), the number of referrals needed, a description, and optionally a disclaimer, an image address, a tag and a milestone email. The milestone email is one of the email templates of the channel: choose it in the Milestone Email tab, where New template and Edit template open Broadcast's own editors in a new tab. Broadcast sends it to the subscriber at the milestone.
- In an email editor, choose Insert from a plugin, then Referral program. Each reader sees their own link, their count and their next reward. Click to Share opens the reader's hub.
The page
- Three numbers: subscribers with referrals, total readers referred, referrals per subscriber.
- Overview: the rewards, how often each was earned, and the top 100 referrers.
- Fulfillment: each earned reward with a status (pending, fulfilled, ignored), its promo code, its date and what happened to its milestone email. Search by email, filter by status, copy the list as CSV, and Manage Referrals shows the people a subscriber referred and corrects a count by hand.
- Configuration: turn the program on or off (off makes every merge tag empty), the text at the top of the email block, and the template of the block, with a preview.
Rewards
A reward with Auto Fulfill is marked fulfilled when it is earned. A Promo Code reward has a pool of codes (Manage Promo Codes): each person gets one code, once. With no code left the reward waits as pending, and the plugin log says so. The log also warns when 5 or fewer codes are left.
A reward can add a tag at its milestone. Start a sequence from the tag. A tag that is a topic is refused (a topic is consent): the log shows the refusal and the referral still counts.
The milestone email
A reward with a template sends that email to the subscriber who reaches the milestone, as a transactional email of the channel with an unsubscribe link. With Send Email After Review on, the email waits until you mark the earned reward as fulfilled (a reward with Auto Fulfill is fulfilled at once, so its email goes at once). Each earned reward sends one email.
In the template, these tags show the earned reward:
| Tag | Value |
|---|---|
{{ plugins.broadcast_referrals.data.reward_name }} |
The name of the reward |
{{ plugins.broadcast_referrals.data.reward_description }} |
Its description |
{{ plugins.broadcast_referrals.data.promo_code }} |
The promo code of the subscriber (empty for other reward types) |
{{ plugins.broadcast_referrals.data.referrals }} |
The number of referrals of the milestone |
The other merge tags of this plugin work in the template too. A subscriber who is unsubscribed or inactive gets no email: the Fulfillment list shows "Not sent: unsubscribed". An email that failed (the list shows "Failed", the plugin log says why) is sent again when you mark its reward as fulfilled. Broadcast limits a plugin to 1,000 emails an hour in a channel and 10 a day to one person. The channel needs a sender and an email server for transactional email.
The reader hub
Each reader has a hub: a page on your Broadcast address, in the branding of the channel and the
language of its subscribers. It shows the reader's count and next reward, their personal link with
a copy button, buttons to share by email, on WhatsApp and on X, their progress to each reward, and
the promo codes they earned. Click to Share in the email block opens it, and the merge tag
hub_url is its address. The link is signed for each subscriber, and opening it changes nothing.
A reader who unsubscribed sees that referrals no longer count.
Merge tags
{{ plugins.broadcast_referrals.<name> }}:
| Name | Value |
|---|---|
referral_block |
The email block (HTML), in the language of the channel |
referral_link |
The personal link |
referral_code |
The personal code |
referral_count |
The number of referrals |
referrals_until_next_reward |
How many referrals the next reward still needs |
next_reward_name, next_reward_image |
The next reward |
hub_url |
The address of the reader's hub |
When a referral counts
A referral counts once the new person is confirmed. Until then it is a pending referral. A person cannot refer themselves, and a person counts once. The plugin keeps the email of each referrer and of each referred person; both are deleted with that subscriber.
A signup form of your own
A Broadcast form keeps the ?ref= code of the link by itself. A form of your own, which creates the
subscriber with POST /api/v1/subscribers, must pass it on (Broadcast 3.2 or later): read ref
from the address of your signup page and send it as subscriber.signup_ref.
{ "subscriber": { "email": "new@example.com", "signup_ref": "rz" }, "double_opt_in": true }
With double_opt_in, the referral counts when the person confirms. A subscriber created with no
double opt-in is never confirmed, so the referral stays pending. If your form works that way, turn
on Count a referral at signup in the settings: the referral then counts when the person signs
up. Leave it off when you can, because a confirmation is what stops made-up signups.
API
With an API token that allows broadcast.referrals/*, at /api/plugins/broadcast.referrals/<name>:
| Name | Method | Gives |
|---|---|---|
program |
GET | The configuration and the rewards |
stats |
GET | The numbers of the program |
subscriber?id= or ?email= |
GET | A subscriber's code, link, counts, referred people and earned rewards |
fulfillment?status=&email=&page= |
GET | The earned rewards |
fulfill |
POST | { "key": "...", "status": "fulfilled" } sets the status of an earned reward |