Skip to main content
ShipStation → GA4Integration guide

Connecting ShipStation to GA4

ShipStation is where the shipping cost of an order finally becomes known, which is the number that decides whether the conversion your ad platform reported was actually profitable. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the ShipStation shipment before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

ShipStation shipping costs joined to GA4 purchases by order number

Don't push ShipStation costs into GA4 events; the label cost arrives after the purchase, and GA4 events can't be edited. Instead, make GA4's transaction_id the same order number ShipStation imports, pull shipments with shipmentCost and ship-to region from ShipStation's API, and join them to the GA4 BigQuery export. Check the match rate, and include return label costs.

Do not try to push ShipStation's costs into GA4 events. The purchase event's shipping parameter is meant for what the customer was charged, and the actual label cost exists only once ShipStation creates the shipment, often a day or more after the purchase was recorded. GA4 events cannot be edited after the fact, so the cost has to be joined to them rather than sent with them.

The join is the order number. Make sure the transaction_id on GA4's purchase is the same order number ShipStation imports from your store, then pull shipments, with their shipmentCost and ship-to region, from ShipStation's API and match them to GA4's BigQuery export on that number. That gives cost to serve by source, campaign and region, which GA4's own interface cannot show.

Check the match rate before reading anything into it. Split shipments, merged orders and orders ShipStation created manually break the one-to-one join, and a store connector that adds a prefix to order numbers will make every row fail to match. Returns should come in with their return label cost so the regional view reflects the round trip, not just the outbound parcel.

ShipStation → GA4 · what breaks

Why this join usually fails — ShipStation → GA4

  1. 01

    The GA4 client_id never reaches ShipStation

    The shipment is created after the order, in a different system, with no session behind it.

  2. 02

    Free shipping absorbing the whole margin

    An order that reported forty pounds of revenue and cost twelve to ship to a remote postcode is a different outcome from the same order shipped locally. Optimizing on revenue steers spend toward whichever geography is most expensive to serve.

  3. 03

    Everything lands under (direct)/(none)

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  4. 04

    Nothing reconciles afterwards

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

ShipStation → GA4 · the fix

What working looks like — ShipStation → GA4

  • The GA4 client_id on every shipment

  • Conversions arriving in GA4

    Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.

  • Reconciled against the source

ShipStation → GA4 · architecture

How ShipStation and GA4 actually connect

  1. 1

    ShipStation holds the truth

    Shipping is frequently the difference between margin and none, and it varies by weight, destination and carrier in ways the order value does not predict.

  2. 2

    GA4 needs a click to match

    GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.

  3. 3

    The identifier is the bridge

    The GA4 client_id, captured at the visit and carried into the ShipStation shipment.

  4. 4

    The event source decides reliability

    Send orders at contribution margin where you can compute it — order value minus cost of goods and actual shipping.

  5. 5

    Deduplication at the destination

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

ShipStation → GA4 · normal or broken

Working vs. broken, side by side — ShipStation → GA4

Normal, not a fault

  • The GA4 client_id present on the shipment

  • Sent from your order system, enriched with shipping cost

  • Deduplicated correctly

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

  • Reconciles with the source

Actually broken

  • The GA4 client_id missing on most records

    The shipment is created after the order, in a different system, with no session behind it.

  • Sent from the browser

    An order that reported forty pounds of revenue and cost twelve to ship to a remote postcode is a different outcome from the same order shipped locally. Optimizing on revenue steers spend toward whichever geography is most expensive to serve.

  • Counted twice, or not at all

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  • Nobody has reconciled it

ShipStation → GA4 · diagnose

Diagnostic order — ShipStation → GA4

  1. 01

    Count shipments carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare average shipping cost by campaign and by region

    The spread is usually larger than expected and it can reverse which campaigns look profitable.

  4. 04

    Check whether server events carry a session and a source

    In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.

  5. 05

    Read the match rate, not the success message

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

ShipStation → GA4 · prove

How it gets proven — ShipStation → GA4

Source of truth

Orders joined to their actual shipping cost and delivery outcome.

  • The GA4 client_id confirmed present on a live shipment.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Orders reconciled at contribution margin against imported conversions for a settled month.

ShipStation → GA4 · free audit

What we check in the free audit

  • Count shipments carrying the GA4 client_id
  • Follow one real conversion end to end
  • Compare average shipping cost by campaign and by region
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Orders joined to their actual shipping cost and delivery outcome.

Get my free conversion tracking audit

Free30 minutesNo obligation

ShipStation → GA4 · when not to buy

When you don't need this — ShipStation → GA4

  • Measure identifier coverage yourself first — pull your last hundred shipments and count how many carry the GA4 client_id.
  • If you sell digital goods or charge shipping at cost, this refinement does not apply.
  • GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.

ShipStation → GA4 · what we deliver

What gets built — ShipStation → GA4

  • Identifier capture into ShipStation

    Join on the order identifier. There is no identifier to capture here — the work is carrying the order's one through.

  • Event source: your order system, enriched with shipping cost

    Send orders at contribution margin where you can compute it — order value minus cost of goods and actual shipping.

  • Dispatch to GA4

    Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.

  • Reversals where they exist

    Returns reverse, and should carry the return shipping cost too.

Written guarantee

95%+ tracking accuracy

Measured against Orders joined to their actual shipping cost and delivery outcome.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

ShipStation → GA4 questions, answered

Not usefully as event data, because the cost is known after the purchase event. Join ShipStation shipments to GA4's BigQuery export on the order number instead.

Free · 30 min

Get ShipStation and GA4 joined properly

Free30 minutesNo obligation