Skip to main content
WooCommerce → The Trade DeskIntegration guide

Connecting WooCommerce to The Trade Desk

WooCommerce keeps the order in your own database, which is both the advantage and the reason nobody has wired it properly. The Trade Desk buys across the open internet rather than inside a walled garden, which means it cannot rely on a logged-in graph and has to work with identity you help it construct. The join between them succeeds or fails on one thing: whether Unified ID 2.0, derived from a hashed email reaches the WooCommerce order before the conversion happens, because The Trade Desk can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

WooCommerce to The Trade Desk: UID2 from every order's email

Every WooCommerce order has a billing email, giving near-full UID2 coverage of buyers but not browsers. Send paid orders server-side with hashed email or UID2, value, currency, timestamp and order ID, following UID2 normalization rules, including Gmail handling. Share the order ID with any tag, and report first orders separately from retargeted repeat buyers.

Every WooCommerce order carries a billing email, so a store has close to full UID2 coverage of its buyers, which many open-internet advertisers lack. The gap is browsing: a WooCommerce store sees an email only at checkout or account login, so anonymous visitors cannot be matched. Matching orders to impressions works; building audiences from anonymous browsers does not.

Send paid orders server-side from the payment hook or a batch export: hashed email or a UID2 generated from it, order value, currency, timestamp and order ID. Normalize first. WooCommerce stores the email as typed, and UID2's normalization rules include specific handling for Gmail addresses that differs from a simple lowercase and trim. If a Trade Desk tag also fires on the order-received page, use the same order ID so the tag and the upload deduplicate.

Separate new customers from repeat buyers when reading results. A returning WooCommerce customer who was served a retargeting impression and bought again would mostly have bought anyway, and on the open internet that view-through credit is large. Flag first orders from the customer's order count in WooCommerce, report new-customer acquisition separately from retargeting, and prove the remainder with a holdout.

WooCommerce → The Trade Desk · what breaks

Why this join usually fails — WooCommerce → The Trade Desk

  1. 01

    Unified ID 2.0, derived from a hashed email 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

    View-through conversions on the open internet

    A large share of what a DSP claims is view-through: the person saw a display impression and later converted without clicking. Some of that is real influence and some of it is coincidence, and no post-click reporting can separate them. Treat the click-attributed number as the floor and prove the rest with a holdout.

  4. 04

    Nothing reconciles afterwards

    The Trade Desk reports match rates on uploaded conversions. Read the match rate — a low one means your authenticated share is the constraint, and no amount of pipeline work will change that.

WooCommerce → The Trade Desk · the fix

What working looks like — WooCommerce → The Trade Desk

  • Unified ID 2.0, derived from a hashed email on every order

  • Conversions arriving in The Trade Desk

    The conversion is matched to an impression or click where identity resolves, and feeds the bidding models.

  • Reconciled against the source

WooCommerce → The Trade Desk · architecture

How WooCommerce and The Trade Desk 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

    The Trade Desk needs a click to match

    The Trade Desk needs the conversion with a UID2 or a hashed email it can resolve, plus the value and timestamp. Conversions from anonymous visitors cannot be matched at all.

  3. 3

    The identifier is the bridge

    Unified ID 2.0, derived from a hashed email, 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

    Deduplication is on your conversion identifier. Because open-internet buying frequently runs alongside search and social, the more consequential deduplication is across platforms rather than within this one.

WooCommerce → The Trade Desk · normal or broken

Working vs. broken, side by side — WooCommerce → The Trade Desk

Normal, not a fault

  • Unified ID 2.0, derived from a hashed email present on the order

  • Sent from the woocommerce_payment_complete hook

  • Deduplicated correctly

    Deduplication is on your conversion identifier. Because open-internet buying frequently runs alongside search and social, the more consequential deduplication is across platforms rather than within this one.

  • Reconciles with the source

Actually broken

  • Unified ID 2.0, derived from a hashed email 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

    A large share of what a DSP claims is view-through: the person saw a display impression and later converted without clicking. Some of that is real influence and some of it is coincidence, and no post-click reporting can separate them. Treat the click-attributed number as the floor and prove the rest with a holdout.

  • Nobody has reconciled it

WooCommerce → The Trade Desk · diagnose

Diagnostic order — WooCommerce → The Trade Desk

  1. 01

    Count orders carrying Unified ID 2.0, derived from a hashed email

  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

    Split reported conversions into click-through and view-through

    If the great majority are view-through, the honest next step is an incrementality test rather than a bid adjustment.

  5. 05

    Read the match rate, not the success message

    The Trade Desk reports match rates on uploaded conversions. Read the match rate — a low one means your authenticated share is the constraint, and no amount of pipeline work will change that.

WooCommerce → The Trade Desk · prove

How it gets proven — WooCommerce → The Trade Desk

Source of truth

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

  • Unified ID 2.0, derived from a hashed email confirmed present on a live order.
  • Matched conversions reconciled against your own order records, with the click-through and view-through split stated.
  • Order meta confirmed present on orders placed while full page caching was active.

WooCommerce → The Trade Desk · free audit

What we check in the free audit

  • Count orders carrying Unified ID 2.0, derived from a hashed email
  • Follow one real conversion end to end
  • Check order meta on ten recent orders
  • Split reported conversions into click-through and view-through
  • 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 → The Trade Desk · when not to buy

When you don't need this — WooCommerce → The Trade Desk

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry Unified ID 2.0, derived from a hashed email.
  • If you run a small store with no caching layer and a single free plugin already reporting accurately, leave it alone.
  • If you cannot collect email addresses from a meaningful share of your buyers, UID2 has little to work with and the open internet is not yet an addressable channel for you.

WooCommerce → The Trade Desk · what we deliver

What gets built — WooCommerce → The Trade Desk

  • 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 The Trade Desk

    Server-side conversion upload with the hashed identity and value, from your order system.

  • 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 → The Trade Desk questions, answered

Yes, by generating UID2 or sending hashed emails from paid orders server-side with value and order ID. Normalize emails to UID2's rules before hashing.

Free · 30 min

Get WooCommerce and The Trade Desk joined properly

Free30 minutesNo obligation