Skip to main content
Friendbuy → Customer.ioIntegration guide

Connecting Friendbuy to Customer.io

Friendbuy runs customer-to-customer referral, which means the acquisition was produced by an existing customer and paid for with a reward on both sides. Customer.io triggers messages from behaviour, which means an event you send is not recorded — it is acted on, usually within seconds, by sending something to a real person. The join between them succeeds or fails on one thing: whether the person identifier you assign reaches the Friendbuy referral before the conversion happens, because Customer.io can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Friendbuy rewards in Customer.io, including the clawback email

Post Friendbuy milestones from your server to the Customer.io Track API, keyed on your store's person identifier, with reward amount, expiry and the friend's first name as attributes. Verify every template attribute exists and add fallbacks, omitting the friend's email or surname. Send a reward revoked event to exit credit reminders, and reject duplicate reward IDs.

Customer.io is a natural place for referral program email, because each Friendbuy milestone maps to a message: a friend used your link, you earned credit, your credit expires soon. Post Friendbuy events from your server to the Customer.io Track API, keyed on the same person identifier your store uses, with the reward amount, the reward expiry and the friend's first name as event attributes.

Those attributes are where this pair breaks visibly. An email reading "you just earned {{event.reward_amount}}" sends anyway when the attribute is missing, and the advocate sees a blank where the dollar figure should be. Check that every attribute the template uses is present in Friendbuy's event before building the campaign, and add a fallback. Do not include the friend's email or surname; the advocate does not need it, and you should not be repeating a friend's details back to someone else.

The case most setups miss is the reversal. When a referred order is refunded, Friendbuy can revoke the advocate's reward, but the advocate is already enrolled in a "spend your credit" reminder sequence. Send a reward revoked event that exits that workflow and, if you choose, explains why. Customer.io will not deduplicate repeated events, so reject a second reward event with the same reward ID.

Friendbuy → Customer.io · what breaks

Why this join usually fails — Friendbuy → Customer.io

  1. 01

    The person identifier you assign never reaches Friendbuy

    Referral links route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier.

  2. 02

    Word of mouth billed to the ad account

    The better your referral programme performs, the worse your paid reporting gets — a genuinely perverse outcome caused entirely by last-write-wins identifier storage that nobody consciously chose.

  3. 03

    A test event sending a real email

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  4. 04

    Nothing reconciles afterwards

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

Friendbuy → Customer.io · the fix

What working looks like — Friendbuy → Customer.io

  • The person identifier you assign on every referral

  • Conversions arriving in Customer.io

    The event lands on the person, evaluates against every campaign trigger and segment condition, and may send immediately.

  • Reconciled against the source

Friendbuy → Customer.io · architecture

How Friendbuy and Customer.io actually connect

  1. 1

    Friendbuy holds the truth

    A double-sided referral costs you two discounts to acquire one customer. That is a real and known acquisition cost, and it sits nowhere near the ad account that will otherwise claim the sale.

  2. 2

    Customer.io needs a click to match

    Customer.io needs the person identifier, the event name and any attributes the campaign conditions reference. An event whose attributes are missing will still trigger a campaign, which may then send a message with an empty placeholder in it.

  3. 3

    The identifier is the bridge

    The person identifier you assign, captured at the visit and carried into the Friendbuy referral.

  4. 4

    The event source decides reliability

    Send orders net of both referral rewards, with referral-sourced orders marked and held out of paid conversion imports.

  5. 5

    Deduplication at the destination

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

Friendbuy → Customer.io · normal or broken

Working vs. broken, side by side — Friendbuy → Customer.io

Normal, not a fault

  • The person identifier you assign present on the referral

  • Sent from your order feed with referral attribution

  • Deduplicated correctly

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

  • Reconciles with the source

Actually broken

  • The person identifier you assign missing on most records

    Referral links route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier.

  • Sent from the browser

    The better your referral programme performs, the worse your paid reporting gets — a genuinely perverse outcome caused entirely by last-write-wins identifier storage that nobody consciously chose.

  • Counted twice, or not at all

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  • Nobody has reconciled it

Friendbuy → Customer.io · diagnose

Diagnostic order — Friendbuy → Customer.io

  1. 01

    Count referrals carrying the person identifier you assign

  2. 02

    Follow one real conversion end to end

  3. 03

    Check precedence between referral and paid parameters

    Whichever wins decides who gets credit, and almost nobody has decided it deliberately.

  4. 04

    Confirm which workspace you are writing to before sending anything

    Environment separation is the whole safety mechanism in behaviour-triggered tools, and it is the thing most often skipped.

  5. 05

    Read the match rate, not the success message

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

Friendbuy → Customer.io · prove

How it gets proven — Friendbuy → Customer.io

Source of truth

Orders flagged by whether a referral produced them, with both reward costs recorded.

  • The person identifier you assign confirmed present on a live referral.
  • Events confirmed on person profiles with the triggered campaign activity verified, in a test workspace before production.
  • Non-referral orders reconciled against imported conversions, with referral volume and reward cost reported separately.

Friendbuy → Customer.io · free audit

What we check in the free audit

  • Count referrals carrying the person identifier you assign
  • Follow one real conversion end to end
  • Check precedence between referral and paid parameters
  • Confirm which workspace you are writing to before sending anything
  • Read the match rate, not the success message

Checked against

Orders flagged by whether a referral produced them, with both reward costs recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

Friendbuy → Customer.io · when not to buy

When you don't need this — Friendbuy → Customer.io

  • Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the person identifier you assign.
  • No referral programme means no conflict and this is an ordinary store integration.
  • If your messaging is scheduled rather than behavioural, a simpler email platform does the job and removes the whole class of accidental-send risk.

Friendbuy → Customer.io · what we deliver

What gets built — Friendbuy → Customer.io

  • Identifier capture into Friendbuy

    Apply an explicit precedence rule between referral and paid parameters and record both on the order.

  • Event source: your order feed with referral attribution

    Send orders net of both referral rewards, with referral-sourced orders marked and held out of paid conversion imports.

  • Dispatch to Customer.io

    The Customer.io Track API, posted server-side from your order or product system with the person identifier and event attributes.

  • Reversals where they exist

    Refunds reverse and should reclaim rewards.

Written guarantee

95%+ tracking accuracy

Measured against Orders flagged by whether a referral produced them, with both reward costs recorded.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Friendbuy → Customer.io questions, answered

Post them from your server to the Customer.io Track API, keyed on your store's customer identifier, with the reward amount and expiry as attributes.

Free · 30 min

Get Friendbuy and Customer.io joined properly

Free30 minutesNo obligation