Connecting ShareASale to Segment
ShareASale is a long-established last-click affiliate network, which means the same voucher-code interception problem as any last-click programme, at the scale of a very large publisher base. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the ShareASale transaction before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
ShareASale and Segment: do not fire the commission twice
Fire the ShareASale conversion from exactly one place: either the thank-you page call or a Segment destination, never both, or orders may be commissioned twice. Carry affiliate ID, publisher type, click time and commission on Order Completed, set messageId from the order ID, and alias voucher-site returns before checkout completes.
In a Segment setup, the ShareASale conversion has to fire from exactly one place. Merchants often keep the original ShareASale tracking call on the thank-you page and then connect a ShareASale-type destination or webhook in Segment as well. If both run, each order is reported to ShareASale twice, and depending on how the network deduplicates on order ID, you may be invoiced commission twice. Check whether Segment's catalog has a ShareASale destination for your workspace and confirm which route ShareASale treats as authoritative before switching.
Carry affiliate context on the Order Completed event: affiliate ID, publisher type, the time of the affiliate click and a commission amount once known. Send revenue as the order value and commission as a property, then let each downstream destination decide; ad platforms may want net value while a warehouse wants both. Set messageId from the order ID, because a duplicate in Segment becomes a duplicate commission claim downstream.
Identity is ordinary here: anonymousId on landing, userId at checkout. What is easy to miss is that voucher-site returns can arrive with a new anonymousId, so alias before checkout completes or the affiliate landing and the purchase look like two people.
ShareASale → Segment · what breaks
Why this join usually fails — ShareASale → Segment
- 01
The userId and anonymousId never reaches ShareASale
The affiliate cookie is set on click and read at checkout, and a voucher-site click seconds before the order will overwrite whatever preceded it.
- 02
Voucher publishers earning on sales your ads produced
A customer arrives from a paid ad, opens a tab to find a code, clicks a voucher site's link and returns to buy. Under last-click the voucher site earns the commission on a sale your advertising created — and your paid reporting counts it too.
- 03
One bad event multiplied across every destination
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
- 04
Nothing reconciles afterwards
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
ShareASale → Segment · the fix
What working looks like — ShareASale → Segment
The userId and anonymousId on every conversion
Conversions arriving in Segment
Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.
Reconciled against the source
ShareASale → Segment · architecture
How ShareASale and Segment actually connect
- 1
ShareASale holds the truth
Publisher type is the whole analysis. Content publishers introduce customers; voucher and cashback publishers intercept them at the basket. Both are paid the same way and they are not the same thing.
- 2
Segment needs a click to match
Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.
- 3
The identifier is the bridge
The userId and anonymousId, captured at the visit and carried into the ShareASale transaction.
- 4
The event source decides reliability
Send orders net of commission, with affiliate-sourced orders marked and publisher type recorded.
- 5
Deduplication at the destination
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
ShareASale → Segment · normal or broken
Working vs. broken, side by side — ShareASale → Segment
Normal, not a fault
The userId and anonymousId present on the conversion
Sent from your order record with affiliate attribution
Deduplicated correctly
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
Reconciles with the source
Actually broken
The userId and anonymousId missing on most records
The affiliate cookie is set on click and read at checkout, and a voucher-site click seconds before the order will overwrite whatever preceded it.
Sent from the browser
A customer arrives from a paid ad, opens a tab to find a code, clicks a voucher site's link and returns to buy. Under last-click the voucher site earns the commission on a sale your advertising created — and your paid reporting counts it too.
Counted twice, or not at all
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
Nobody has reconciled it
ShareASale → Segment · diagnose
Diagnostic order — ShareASale → Segment
- 01
Count conversions carrying the userId and anonymousId
- 02
Follow one real conversion end to end
- 03
Segment commissions by publisher type and time-from-click to order
Clicks seconds before an order are interception. That segmentation is available and rarely run.
- 04
Check identity resolution before checking anything downstream
If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.
- 05
Read the match rate, not the success message
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
ShareASale → Segment · prove
How it gets proven — ShareASale → Segment
Source of truth
Orders flagged by affiliate, with commission recorded and the publisher type identified.
- The userId and anonymousId confirmed present on a live conversion.
- An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
- Orders reconciled net of commission against imported conversions, with the paid-media overlap measured.
ShareASale → Segment · free audit
What we check in the free audit
- Count conversions carrying the userId and anonymousId
- Follow one real conversion end to end
- Segment commissions by publisher type and time-from-click to order
- Check identity resolution before checking anything downstream
- Read the match rate, not the success message
Checked against
Orders flagged by affiliate, with commission recorded and the publisher type identified.
Free30 minutesNo obligation
ShareASale → Segment · when not to buy
When you don't need this — ShareASale → Segment
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the userId and anonymousId.
- No affiliate programme means none of this applies. If you run one, the commission structure by publisher type will change your economics more than tracking accuracy will.
- If you send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.
ShareASale → Segment · what we deliver
What gets built — ShareASale → Segment
Identifier capture into ShareASale
Record the click timestamp alongside the affiliate identifier so late-journey interception is visible.
Event source: your order record with affiliate attribution
Send orders net of commission, with affiliate-sourced orders marked and publisher type recorded.
Dispatch to Segment
Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.
Reversals where they exist
Refunds reverse and should reverse the commission.
Written guarantee
95%+ tracking accuracy
Measured against Orders flagged by affiliate, with commission recorded and the publisher type identified.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
ShareASale → Segment questions, answered
Check your Segment catalog for a ShareASale destination. Whichever route you use, remove any other ShareASale tracking call so orders are not reported twice.
The ShareASale affiliate ID, publisher type, the affiliate click time and the commission once known, with revenue as the order value.
Almost always because the userId and anonymousId never reached the ShareASale transaction. The affiliate cookie is set on click and read at checkout, and a voucher-site click seconds before the order will overwrite whatever preceded it. Measure coverage before debugging the dispatch.
Segment identifies people by anonymousId before they are known and userId afterwards, and the alias between them is what stitches a session to a customer. Click identifiers travel as event properties or traits rather than as a matching key — Segment does not match anything itself, it forwards. That distinction changes the whole design: get the identity resolution right and every downstream destination inherits it.
Your order record with affiliate attribution. Send orders net of commission, with affiliate-sourced orders marked and publisher type recorded.
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
More on ShareASale → Segment
- Stripe → SegmentConnecting Stripe to Segment
- PayPal → SegmentConnecting PayPal to Segment
- Shopify → SegmentConnecting Shopify to Segment
RELATED GUIDES
Where ShareASale → Segment fits in the rest of your tracking
- Rakuten Advertising → SegmentConnecting Rakuten Advertising to Segment
- Refersion → SegmentConnecting Refersion to Segment
- CJ → SegmentConnecting CJ Affiliate to Segment
- ShareASale → BigQueryConnecting ShareASale to BigQuery
- SubscriptionsConversion tracking for subscription businesses, across the whole lifecycle
- Post Affiliate Pro → SegmentConnecting Post Affiliate Pro to Segment
- LeadDyno → SegmentConnecting LeadDyno to Segment
- Tapfiliate → SegmentConnecting Tapfiliate to Segment
Free · 30 min
Get ShareASale and Segment joined properly
Free30 minutesNo obligation
