Skip to main content
WooCommerce → BranchIntegration guide

Connecting WooCommerce to Branch

WooCommerce keeps the order in your own database, which is both the advantage and the reason nobody has wired it properly. Branch's real job is the web-to-app seam — a person clicks a link in a browser, installs the app, and something has to carry the context across an install that destroys every cookie involved. The join between them succeeds or fails on one thing: whether the Branch link click identifier and the deferred deep link payload reaches the WooCommerce order before the conversion happens, because Branch can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

WooCommerce to Branch: product links that survive the app install

Branch matters when a WooCommerce brand has a shopping app. Put the product ID or slug in deep link data with campaign parameters, so taps open that product. For app orders, write the Branch identity, usually the WooCommerce customer ID, to the order and send from woocommerce_payment_complete with the order ID. Send only app-placed orders.

Branch matters for a WooCommerce brand that also has a shopping app, and the job is specific: a shopper taps a product link in an ad or email on mobile web and should land on that product inside the app, even if the app had to be installed first. Without Branch the app opens on its home screen, the shopper hunts for the product or gives up, and the install looks organic.

Put the WooCommerce product ID or slug in the link's deep link data so the app can open the right product, and keep the campaign parameters on it so the install is attributed. When an order is placed in the app, write the Branch identity, normally your WooCommerce customer ID, to the order, and send the purchase server-side from woocommerce_payment_complete with the order ID as the event identifier.

The pair breaks when the web store and the app disagree about the handoff. If a smart banner pushes shoppers into the app but the cart they built on the website does not follow them, they abandon. Decide which journeys stay on the web checkout, which is often faster for a first purchase, and send only app-placed orders to Branch, so its revenue does not double-count web orders your ad platforms already claim.

WooCommerce → Branch · what breaks

Why this join usually fails — WooCommerce → Branch

  1. 01

    The Branch link click identifier and the deferred deep link payload never reaches WooCommerce

    WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.

  2. 02

    Caching and optimization plugins eat the tracking

    The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.

  3. 03

    The install that erases the campaign

    Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.

  4. 04

    Nothing reconciles afterwards

    Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.

WooCommerce → Branch · the fix

What working looks like — WooCommerce → Branch

  • The Branch link click identifier and the deferred deep link payload on every order

  • Conversions arriving in Branch

    The event is attributed to the originating link and campaign, and forwarded to any configured downstream partners.

  • Reconciled against the source

WooCommerce → Branch · architecture

How WooCommerce and Branch actually connect

  1. 1

    WooCommerce holds the truth

    You own the database, so the truth is exactly as good as the query you write against it. Pin the status set first — whether processing, completed, or both count as a conversion changes the number by a lot and is the source of most arguments.

  2. 2

    Branch needs a click to match

    Branch needs the link click context matched to the app open, plus the event and its revenue. Without the deferred deep link payload there is nothing to join the install to.

  3. 3

    The identifier is the bridge

    The Branch link click identifier and the deferred deep link payload, captured at the visit and carried into the WooCommerce order.

  4. 4

    The event source decides reliability

    Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.

  5. 5

    Deduplication at the destination

    Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.

WooCommerce → Branch · normal or broken

Working vs. broken, side by side — WooCommerce → Branch

Normal, not a fault

  • The Branch link click identifier and the deferred deep link payload present on the order

  • Sent from the woocommerce_payment_complete hook

  • Deduplicated correctly

    Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.

  • Reconciles with the source

Actually broken

  • The Branch link click identifier and the deferred deep link payload missing on most records

    WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.

  • Sent from the browser

    The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.

  • Counted twice, or not at all

    Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.

  • Nobody has reconciled it

WooCommerce → Branch · diagnose

Diagnostic order — WooCommerce → Branch

  1. 01

    Count orders carrying the Branch link click identifier and the deferred deep link payload

  2. 02

    Follow one real conversion end to end

  3. 03

    Check order meta on ten recent orders

    Directly in the database or with a meta viewer. Then disable page caching for the checkout path and see whether coverage changes — if it does, caching is your cause.

  4. 04

    Measure your organic install share and ask whether it is plausible

    An implausibly large organic share is usually broken attribution rather than genuine word of mouth.

  5. 05

    Read the match rate, not the success message

    Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.

WooCommerce → Branch · prove

How it gets proven — WooCommerce → Branch

Source of truth

WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.

  • The Branch link click identifier and the deferred deep link payload confirmed present on a live order.
  • Attributed installs and in-app purchases reconciled against your own user records, with the unattributed share stated.
  • Order meta confirmed present on orders placed while full page caching was active.

WooCommerce → Branch · free audit

What we check in the free audit

  • Count orders carrying the Branch link click identifier and the deferred deep link payload
  • Follow one real conversion end to end
  • Check order meta on ten recent orders
  • Measure your organic install share and ask whether it is plausible
  • Read the match rate, not the success message

Checked against

WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.

Get my free conversion tracking audit

Free30 minutesNo obligation

WooCommerce → Branch · when not to buy

When you don't need this — WooCommerce → Branch

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Branch link click identifier and the deferred deep link payload.
  • If you run a small store with no caching layer and a single free plugin already reporting accurately, leave it alone.
  • If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.

WooCommerce → Branch · what we deliver

What gets built — WooCommerce → Branch

  • Identifier capture into WooCommerce

    Capture the click identifier and persist it as order meta on the order object with a small snippet in the theme's functions or a purpose-built plugin. Order meta lives in your own database, so it survives caching, plugin conflicts and the customer's browser.

  • Event source: the woocommerce_payment_complete hook

    Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.

  • Dispatch to Branch

    The Branch server-to-server events API, posted from your backend with the user identity and event data.

  • Reversals where they exist

    The refund hooks carry the order ID, so reversals are straightforward once the identifier is on the order.

Written guarantee

95%+ tracking accuracy

Measured against WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

WooCommerce → Branch questions, answered

Only if paid or email traffic sends mobile users toward your app and you need installs attributed and product deep links to survive the install. A web-only store does not need it.

Free · 30 min

Get WooCommerce and Branch joined properly

Free30 minutesNo obligation