Skip to main content
Friendbuy → X AdsIntegration guide

Connecting Friendbuy to X Ads

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. X is a conversation platform where a large share of engagement is discussion rather than intent, which makes the gap between engagement metrics and conversions unusually wide. The join between them succeeds or fails on one thing: whether the twclid click identifier reaches the Friendbuy referral before the conversion happens, because X Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Friendbuy and X Ads: shared referral posts are not paid clicks

Referral links shared on X arrive with X as referrer but no twclid, and are not ad performance. If you persist twclid server-side, record both identifiers on the order and hold referral-flagged orders out of the X Conversions API. Send genuine X orders server-side with the order ID as a pixel-shared conversion ID and value net of referral discounts.

Referral links get shared on X all the time, in posts and replies, and that traffic shows X as the referrer with no twclid. It is the Friendbuy program working, paid for with two rewards, and it should not be counted as X ad performance. The trap is analytics that groups by referrer domain: a good week for an advocate with a following looks like a good week for your X campaign.

The paid collision is shorter-lived here than on other networks. X's in-app browser keeps storage briefly, so a twclid from an ad click is often already gone by the time the same person returns through a friend's referral link. If you persist twclid server-side, the precedence rule decides the order; record both on the order and hold referral-flagged orders out of the X Conversions API.

For orders that X genuinely produced, send them server-side with the order ID as the conversion ID shared with the pixel, and value net of any referral discount. X volumes are often small, so a handful of mislabeled referral orders can make a campaign look profitable. Compare referral-flagged orders with X as referrer against your X-attributed orders for the same week before trusting either.

Friendbuy → X Ads · what breaks

Why this join usually fails — Friendbuy → X Ads

  1. 01

    The twclid click identifier 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

    Engagement mistaken for intent

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  4. 04

    Nothing reconciles afterwards

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

Friendbuy → X Ads · the fix

What working looks like — Friendbuy → X Ads

  • The twclid click identifier on every referral

  • Conversions arriving in X Ads

    The conversion is matched to a click or an engagement and becomes available for optimisation and reporting.

  • Reconciled against the source

Friendbuy → X Ads · architecture

How Friendbuy and X Ads 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

    X Ads needs a click to match

    An event X recognises, a conversion identifier for deduplication, hashed customer information, and the click identifier where you have it.

  3. 3

    The identifier is the bridge

    The twclid click identifier, 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

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

Friendbuy → X Ads · normal or broken

Working vs. broken, side by side — Friendbuy → X Ads

Normal, not a fault

  • The twclid click identifier present on the referral

  • Sent from your order feed with referral attribution

  • Deduplicated correctly

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

  • Reconciles with the source

Actually broken

  • The twclid click identifier 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

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  • Nobody has reconciled it

Friendbuy → X Ads · diagnose

Diagnostic order — Friendbuy → X Ads

  1. 01

    Count referrals carrying the twclid click identifier

  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

    Compare engagement rate against conversion rate by campaign

    On X the two frequently move in opposite directions, and that divergence is the finding rather than a measurement fault.

  5. 05

    Read the match rate, not the success message

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

Friendbuy → X Ads · prove

How it gets proven — Friendbuy → X Ads

Source of truth

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

  • The twclid click identifier confirmed present on a live referral.
  • Conversions reconciled per order against imported figures, with deduplication verified on a live test.
  • Non-referral orders reconciled against imported conversions, with referral volume and reward cost reported separately.

Friendbuy → X Ads · free audit

What we check in the free audit

  • Count referrals carrying the twclid click identifier
  • Follow one real conversion end to end
  • Check precedence between referral and paid parameters
  • Compare engagement rate against conversion rate by campaign
  • 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 → X Ads · when not to buy

When you don't need this — Friendbuy → X Ads

  • Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the twclid click identifier.
  • No referral programme means no conflict and this is an ordinary store integration.
  • If X is a brand and community channel for you rather than a performance one, measure it that way and do not force a conversion pipeline onto it.

Friendbuy → X Ads · what we deliver

What gets built — Friendbuy → X Ads

  • 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 X Ads

    The X Conversions API, posted server-side with the click identifier and hashed customer data.

  • 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 → X Ads questions, answered

Advocates share Friendbuy links in posts, so the visit arrives with X as referrer but no twclid. Those are referral orders and should be excluded from X ad reporting.

Free · 30 min

Get Friendbuy and X Ads joined properly

Free30 minutesNo obligation