Skip to main content
Drupal Commerce → OutbrainIntegration guide

Connecting Drupal Commerce to Outbrain

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. Outbrain is the other major native discovery network, with the same audience-intent problem and its own conversion configuration. The join between them succeeds or fails on one thing: whether the Outbrain click identifier reaches the Drupal Commerce order before the conversion happens, because Outbrain can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Drupal Commerce to Outbrain: the article is not the conversion

Read Outbrain's click identifier in the browser on cached article pages, hold it in a first-party cookie, and copy it onto the cart. Define a purchase conversion, not article engagement, and send it server-side from the order placement hook with hashed email, value, currency and the order number as event identifier. Check the conversion window.

Drupal sites are often content-led, which suits Outbrain: readers land on an article that links into the store. The path from click to order therefore runs across several pages, starting on an article that a CDN probably serves from cache. The Outbrain click identifier has to be read in the browser on that article, held in a first-party cookie, and copied onto the cart when a product is added, or it is gone by checkout.

Count orders, not reads. Outbrain will happily optimize toward article engagement or a product page view if those are the conversions you configure, and on discovery traffic those are cheap and say little about buyers. Define a purchase conversion in Outbrain's interface and send it server-side from the order placement hook with the click ID, hashed email, value and currency, using the order number as the event identifier so it pairs with any pixel event.

Expect a long, multi-visit path from article to order. Many readers return through search or email before buying, so check the conversion window you set in Outbrain against how long your article-to-order lag actually is in Drupal. A setup that only sees same-session purchases will undercount the content that started the journey and push you toward cutting it.

Drupal Commerce → Outbrain · what breaks

Why this join usually fails — Drupal Commerce → Outbrain

  1. 01

    The Outbrain click identifier 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

    Shallow conversions on discovery traffic

    A newsletter signup from discovery traffic converts to revenue at a very different rate than the same signup from search. Optimizing on the shallow event flatters the channel and misleads the budget.

  4. 04

    Nothing reconciles afterwards

    Outbrain reports at campaign and section level. Reconcile against your own records, and compare the downstream conversion rate of discovery traffic against your other channels before judging the numbers.

Drupal Commerce → Outbrain · the fix

What working looks like — Drupal Commerce → Outbrain

  • The Outbrain click identifier on every order

  • Conversions arriving in Outbrain

    Conversions appear against campaigns and publisher sections, which is the level at which the channel is actually managed.

  • Reconciled against the source

Drupal Commerce → Outbrain · architecture

How Drupal Commerce and Outbrain 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

    Outbrain needs a click to match

    Outbrain matches server events on the click identifier and hashed customer information, against conversion definitions configured in its interface.

  3. 3

    The identifier is the bridge

    The Outbrain click identifier, 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

    Outbrain deduplicates on a shared event identifier between the pixel and the server event.

Drupal Commerce → Outbrain · normal or broken

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

Normal, not a fault

  • The Outbrain click identifier present on the order

  • Sent from the Drupal Commerce order placement hook

  • Deduplicated correctly

    Outbrain deduplicates on a shared event identifier between the pixel and the server event.

  • Reconciles with the source

Actually broken

  • The Outbrain click identifier 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

    A newsletter signup from discovery traffic converts to revenue at a very different rate than the same signup from search. Optimizing on the shallow event flatters the channel and misleads the budget.

  • Nobody has reconciled it

Drupal Commerce → Outbrain · diagnose

Diagnostic order — Drupal Commerce → Outbrain

  1. 01

    Count orders carrying the Outbrain click identifier

  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

    Compare downstream conversion rates for discovery traffic against your other channels

    If they differ substantially — and they usually do — the conversion you optimize toward has to sit deeper in the funnel here.

  5. 05

    Read the match rate, not the success message

    Outbrain reports at campaign and section level. Reconcile against your own records, and compare the downstream conversion rate of discovery traffic against your other channels before judging the numbers.

Drupal Commerce → Outbrain · prove

How it gets proven — Drupal Commerce → Outbrain

Source of truth

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

  • The Outbrain click identifier confirmed present on a live order.
  • Downstream conversion rate for Outbrain traffic measured separately from other channels.
  • Order field data confirmed populated on an order placed through a fully warmed cache as an anonymous visitor.

Drupal Commerce → Outbrain · free audit

What we check in the free audit

  • Count orders carrying the Outbrain click identifier
  • Follow one real conversion end to end
  • List the order states in use and agree which count as revenue
  • Compare downstream conversion rates for discovery traffic against your other channels
  • 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 → Outbrain · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Outbrain click identifier.
  • If your Drupal site is content-only with commerce elsewhere, work at the commerce system instead — this is the wrong layer.
  • If you have no top-of-funnel content worth discovering, native placement has nothing to work with regardless of measurement.

Drupal Commerce → Outbrain · what we deliver

What gets built — Drupal Commerce → Outbrain

  • 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 Outbrain

    Server events to Outbrain's conversions endpoint with the click identifier and hashed customer data.

  • 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 → Outbrain questions, answered

The placed order, sent server-side with the click ID and order number. Article reads and product views are too shallow to optimize on.

Free · 30 min

Get Drupal Commerce and Outbrain joined properly

Free30 minutesNo obligation