Skip to main content
Drupal Commerce → RokuIntegration guide

Connecting Drupal Commerce to Roku Ads

Drupal Commerce is self-hosted commerce inside a CMS built for complex content, which means the store is one part of a much larger site you fully control. Connected TV is a household medium with no click surface, which makes every conversion it reports a matched inference rather than a followed link. The join between them succeeds or fails on one thing: whether household-level identity, not a click reaches the Drupal Commerce order before the conversion happens, because Roku can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Drupal Commerce to Roku Ads: upload orders, then run a holdout

Roku credits a Drupal Commerce order only by matching the buyer's household, so send placed orders server-side on a schedule with hashed order email and normalized billing address data; there is no click to capture. Use the same value definition as other channels, usually the item subtotal after discounts, exclude canceled and refunded orders, and verify with a geographic holdout.

Roku can only credit a Drupal Commerce order by matching the buyer's household to a TV that saw the ad, so what you send is a list of placed orders with hashed identity: the order email, plus postal data from the billing profile's address components, normalized before hashing. Send it server-side on a schedule from orders in the states your team counts as revenue. There is no click and nothing to capture on the landing page.

Decide the value carefully. A Drupal order total includes adjustments for shipping, tax and promotions, and a CTV report will be compared against other channels' revenue, so send the same value definition you use everywhere else, usually the item subtotal after discounts. Exclude canceled orders and drop refunded ones from later uploads.

A matched number from a household graph cannot be checked from your side, which is why the useful test is a geographic holdout: run Roku in some regions and not others, and compare Drupal orders by shipping region over the same weeks. Drupal makes that query easy because you own the database. If the holdout shows nothing, the matched conversions were mostly people who would have bought anyway, and search and social are probably claiming them too.

Drupal Commerce → Roku · what breaks

Why this join usually fails — Drupal Commerce → Roku

  1. 01

    Household-level identity, not a click never reaches Drupal Commerce

    Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.

  2. 02

    Configurable workflow states nobody agreed on

    Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.

  3. 03

    View-through on a screen nobody clicked

    Every CTV conversion is view-through by definition. Some of that influence is real and some is a household that would have bought anyway, and no amount of pixel work separates the two. Only a holdout does.

  4. 04

    Nothing reconciles afterwards

    Roku reports matched conversions and match rates. The match rate tells you how much of your audience it could resolve at all — and a geo holdout tells you whether the campaign moved anything.

Drupal Commerce → Roku · the fix

What working looks like — Drupal Commerce → Roku

  • Household-level identity, not a click on every order

  • Conversions arriving in Roku

    The conversion is matched to an exposed household within the attribution window and feeds the campaign reporting.

  • Reconciled against the source

Drupal Commerce → Roku · architecture

How Drupal Commerce and Roku actually connect

  1. 1

    Drupal Commerce holds the truth

    You own the database, so the truth is exactly as good as the query. Pin down which order states count as revenue before comparing anything — Drupal's workflow states are configurable per install, so no two sites agree by default.

  2. 2

    Roku Ads needs a click to match

    A pixel or server event on your side that Roku can match against, plus the hashed customer information the match depends on. Without that, the channel is measurable only by holdout.

  3. 3

    The identifier is the bridge

    Household-level identity, not a click, captured at the visit and carried into the Drupal Commerce order.

  4. 4

    The event source decides reliability

    Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.

  5. 5

    Deduplication at the destination

    The deduplication problem is across platforms, not within this one. A household exposed to a TV ad and later reached by search and social produces a conversion all three will claim.

Drupal Commerce → Roku · normal or broken

Working vs. broken, side by side — Drupal Commerce → Roku

Normal, not a fault

  • Household-level identity, not a click present on the order

  • Sent from the Drupal Commerce order placement hook

  • Deduplicated correctly

    The deduplication problem is across platforms, not within this one. A household exposed to a TV ad and later reached by search and social produces a conversion all three will claim.

  • Reconciles with the source

Actually broken

  • Household-level identity, not a click missing on most records

    Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.

  • Sent from the browser

    Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.

  • Counted twice, or not at all

    Every CTV conversion is view-through by definition. Some of that influence is real and some is a household that would have bought anyway, and no amount of pixel work separates the two. Only a holdout does.

  • Nobody has reconciled it

Drupal Commerce → Roku · diagnose

Diagnostic order — Drupal Commerce → Roku

  1. 01

    Count orders carrying household-level identity, not a click

  2. 02

    Follow one real conversion end to end

  3. 03

    List the order states in use and agree which count as revenue

    Do this before any technical work — it resolves more Drupal Commerce disputes than any code change.

  4. 04

    Ask whether a geo or audience holdout exists

    If it does not, the reported figure is exposure correlated with purchase, which is not the same as a campaign that caused one.

  5. 05

    Read the match rate, not the success message

    Roku reports matched conversions and match rates. The match rate tells you how much of your audience it could resolve at all — and a geo holdout tells you whether the campaign moved anything.

Drupal Commerce → Roku · prove

How it gets proven — Drupal Commerce → Roku

Source of truth

Drupal's commerce_order records in your own database, filtered to completed states.

  • Household-level identity, not a click confirmed present on a live order.
  • Incremental lift measured against a holdout, with platform-reported conversions shown alongside rather than instead.
  • Order field data confirmed populated on an order placed through a fully warmed cache as an anonymous visitor.

Drupal Commerce → Roku · free audit

What we check in the free audit

  • Count orders carrying household-level identity, not a click
  • Follow one real conversion end to end
  • List the order states in use and agree which count as revenue
  • Ask whether a geo or audience holdout exists
  • Read the match rate, not the success message

Checked against

Drupal's commerce_order records in your own database, filtered to completed states.

Get my free conversion tracking audit

Free30 minutesNo obligation

Drupal Commerce → Roku · when not to buy

When you don't need this — Drupal Commerce → Roku

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry household-level identity, not a click.
  • If your Drupal site is content-only with commerce elsewhere, work at the commerce system instead — this is the wrong layer.
  • If you cannot run a holdout, keep CTV budget small and report it as unproven. That is a more useful position than a matched number nobody can check.

Drupal Commerce → Roku · what we deliver

What gets built — Drupal Commerce → Roku

  • Identifier capture into Drupal Commerce

    Capture the identifier and persist it as order field data through a hook on order placement, server-side, so it never depends on what the cache served.

  • Event source: the Drupal Commerce order placement hook

    Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.

  • Dispatch to Roku

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

  • Reversals where they exist

    Order state transitions to refunded or cancelled are recorded and can drive reversals.

Written guarantee

95%+ tracking accuracy

Measured against Drupal's commerce_order records in your own database, filtered to completed states.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Drupal Commerce → Roku questions, answered

Placed orders with a hashed, normalized email and billing postal fields, the order time and a consistent value. No click identifiers exist for CTV.

Free · 30 min

Get Drupal Commerce and Roku joined properly

Free30 minutesNo obligation