Skip to main content
Shopify → The Trade DeskIntegration guide

Connecting Shopify to The Trade Desk

Shopify is the system of record for the order, and its admin numbers are the ones the business runs on. 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 Shopify 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

Shopify to The Trade Desk: UID2 built from the order email

Every Shopify order has an email, so upload paid orders server-side to The Trade Desk with normalized, hashed email or UID2, honoring opt-outs, plus order ID, value, currency and timestamp. Leave out POS, wholesale and marketplace-channel orders, and consider subtotal after discounts as value. Judge the channel with a holdout, since most of its credit is view-through.

Every Shopify order has an email, which is the input UID2 needs, so a store's matchable share for The Trade Desk is the share of orders, not of anonymous visitors. That makes a server-side upload from the paid order clearly better than the universal pixel alone: the pixel in the theme sees visits but not the checkout, while the order sees every buyer's email. Normalize and hash the email, or generate UID2 through your UID2 integration if you have one, honor opt-outs, and send it with order ID, value, currency and timestamp.

Two Shopify-specific choices. Leave out POS, wholesale and marketplace-channel orders, which The Trade Desk would match to exposed users and count. And decide what value the bidding should see; for a store with heavy discounting, subtotal after discounts is closer to what you earn than an order total including shipping and tax.

The reason for care with this pair: most of what The Trade Desk reports will be view-through, on customers who also clicked a Google or Meta ad before buying. Shopify is the one place each order exists exactly once. Count orders claimed by The Trade Desk that also carry a gclid or fbc in their note attributes, and judge the channel with a holdout rather than the matched count.

Shopify → The Trade Desk · what breaks

Why this join usually fails — Shopify → The Trade Desk

  1. 01

    Unified ID 2.0, derived from a hashed email never reaches Shopify

    Shopify's checkout is locked down. Custom scripts on the checkout steps are not permitted on standard plans, and the old additional-scripts route is gone, so the identifier has to be captured on the storefront and carried into the order through cart or order attributes rather than read at the checkout itself.

  2. 02

    Checkout extensibility hides what you need

    Shopify deliberately restricts what runs during checkout. Setups that assumed free rein there broke when the platform moved to Checkout Extensibility, and many stores have been quietly under-reporting since.

  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.

Shopify → The Trade Desk · the fix

What working looks like — Shopify → 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

Shopify → The Trade Desk · architecture

How Shopify and The Trade Desk actually connect

  1. 1

    Shopify holds the truth

    The order carries line items, discounts, shipping, tax, currency and the customer. Note which figure you intend to report — total, subtotal, or net of shipping and tax — because most mismatches between Shopify and an ad platform turn out to be two people comparing two different numbers.

  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 Shopify order.

  4. 4

    The event source decides reliability

    Send when Shopify says the order is paid, from your server. This also covers draft orders, POS, and the customer who closes the tab on the thank-you page — none of which a pixel on the order-status page will ever see.

  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.

Shopify → The Trade Desk · normal or broken

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

Normal, not a fault

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

  • Sent from the orders/paid webhook

  • 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

    Shopify's checkout is locked down. Custom scripts on the checkout steps are not permitted on standard plans, and the old additional-scripts route is gone, so the identifier has to be captured on the storefront and carried into the order through cart or order attributes rather than read at the checkout itself.

  • Sent from the browser

    Shopify deliberately restricts what runs during checkout. Setups that assumed free rein there broke when the platform moved to Checkout Extensibility, and many stores have been quietly under-reporting since.

  • 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

Shopify → The Trade Desk · diagnose

Diagnostic order — Shopify → 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

    Open a recent paid order and read its note attributes

    If the identifier is not on the order, nothing downstream can attribute it. Check ten orders, not one — partial coverage is the normal failure, not total absence.

  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.

Shopify → The Trade Desk · prove

How it gets proven — Shopify → The Trade Desk

Source of truth

Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.

  • 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 totals in Shopify Admin reconciled per order, not on the summed total, over a closed window.

Shopify → 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
  • Open a recent paid order and read its note attributes
  • Split reported conversions into click-through and view-through
  • Read the match rate, not the success message

Checked against

Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.

Get my free conversion tracking audit

Free30 minutesNo obligation

Shopify → The Trade Desk · when not to buy

When you don't need this — Shopify → 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.
  • Shopify's own native channel integrations already cover simple single-currency stores adequately. If your admin numbers and platform numbers already agree, you do not need this.
  • 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.

Shopify → The Trade Desk · what we deliver

What gets built — Shopify → The Trade Desk

  • Identifier capture into Shopify

    Capture the click identifier on the storefront, write it to a cart attribute so it becomes an order note attribute, and read it back server-side from the order. That path survives the checkout domain hop that breaks cookie-based approaches.

  • Event source: the orders/paid webhook

    Send when Shopify says the order is paid, from your server. This also covers draft orders, POS, and the customer who closes the tab on the thank-you page — none of which a pixel on the order-status page will ever see.

  • Dispatch to The Trade Desk

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

  • Reversals where they exist

    refunds/create fires with the original order reference, so refunds and cancellations can be reversed at the destination.

Written guarantee

95%+ tracking accuracy

Measured against Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Shopify → The Trade Desk questions, answered

Yes, through its pixel in the theme and more completely by uploading paid orders server-side with hashed email or UID2. Shopify orders almost always carry an email, so match potential is high.

Free · 30 min

Get Shopify and The Trade Desk joined properly

Free30 minutesNo obligation