Skip to main content
Craft → OutbrainIntegration guide

Connecting Craft CMS to Outbrain

Craft is a developer-oriented CMS, usually built bespoke by an agency, which means the implementation is whatever that agency decided and nothing is standard. 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 Craft 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

Craft CMS to Outbrain: content sites that also sell

Capture the Outbrain click identifier with JavaScript on heavily cached Craft article pages and copy it onto the Commerce cart. Send completed orders from the order-complete listener with the identifier, hashed email and the order reference shared with the pixel, newsletter sign-ups only as lesser events, and compare thirty-day buyer rates with search.

Craft is a content-first CMS, and that is the setup where Outbrain makes most sense: a brand with a real editorial section built from Craft entries, promoting articles to discovery readers and hoping some of them buy from the Commerce store. The measurement question is how far an article reader travels: from an entry page, to a product, to a completed order, usually not in the same visit.

Capture the Outbrain click identifier with JavaScript on the article, because article templates are the most aggressively cached pages on a Craft site, and copy it onto the cart when one is created. Send the completed order from the order-complete listener with the identifier, hashed email and the order reference as the event identifier shared with the pixel. A newsletter sign-up from an article is worth sending as a lesser event, never as the optimization target.

Because the click identifier ends up stored on the Commerce order, you can count from Craft how many Outbrain-landed visitors bought within thirty days and compare that rate with search traffic to the same articles in your analytics. If Outbrain readers convert at a fraction of the rate, optimize on the order event and use Outbrain's section-level reporting to find where the buyers came from.

Craft → Outbrain · what breaks

Why this join usually fails — Craft → Outbrain

  1. 01

    The Outbrain click identifier never reaches Craft

    Craft's template caching and static caching plugins both serve stored output, and because every build is custom, where the capture code lives differs per site. There is no standard place to look.

  2. 02

    Every install is bespoke

    There is no standard Craft setup, so an approach that worked on another Craft site may have nothing to attach to on this one. Read the build before quoting.

  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.

Craft → Outbrain · the fix

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

    Craft CMS's own records are the reference, not either dashboard.

Craft → Outbrain · architecture

How Craft and Outbrain actually connect

  1. 1

    Craft CMS holds the truth

    Craft installs are bespoke by nature. Establish how this particular build models a completed order before assuming anything transfers from another Craft site.

  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 Craft Commerce order.

  4. 4

    The event source decides reliability

    Fire from the event listener in PHP rather than a Twig template, which may be cached.

  5. 5

    Deduplication at the destination

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

Craft → Outbrain · normal or broken

Working vs. broken, side by side — Craft → Outbrain

Normal, not a fault

  • The Outbrain click identifier present on the order

    Visible on the record itself in Craft CMS, not merely captured somewhere on the site.

  • Sent from the Craft Commerce order-complete event

  • Deduplicated correctly

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

  • Reconciles with the source

    Outbrain's count and Craft CMS's records agree within a few percent over a closed window.

Actually broken

  • The Outbrain click identifier missing on most records

    Craft's template caching and static caching plugins both serve stored output, and because every build is custom, where the capture code lives differs per site. There is no standard place to look.

  • Sent from the browser

    There is no standard Craft setup, so an approach that worked on another Craft site may have nothing to attach to on this one. Read the build before quoting.

  • 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

    The dashboard shows a number and no one has compared it to Craft CMS.

Craft → Outbrain · diagnose

Diagnostic order — Craft → Outbrain

  1. 01

    Count orders carrying the Outbrain click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Read how this specific build handles order completion

    Assumptions carried from another Craft project are the main source of wasted time here.

  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.

Craft → Outbrain · prove

How it gets proven — Craft → Outbrain

Against Craft CMS's own records, not against either platform's dashboard.

Source of truth

Craft Commerce's order records in your own database, filtered to completed.

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

Craft → Outbrain · free audit

What we check in the free audit

  • Count orders carrying the Outbrain click identifier
  • Follow one real conversion end to end
  • Read how this specific build handles order completion
  • Compare downstream conversion rates for discovery traffic against your other channels
  • Read the match rate, not the success message

Checked against

Craft Commerce's order records in your own database, filtered to completed.

Get my free conversion tracking audit

Free30 minutesNo obligation

Craft → Outbrain · when not to buy

When you don't need this — Craft → Outbrain

  • If Outbrain already reports conversions that reconcile against Craft CMS's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Outbrain click identifier.
  • If the original agency is still engaged, the fastest path is usually specifying the field and having them add the hook.
  • If you have no top-of-funnel content worth discovering, native placement has nothing to work with regardless of measurement.

Craft → Outbrain · what we deliver

What gets built — Craft → Outbrain

  • Identifier capture into Craft

    Capture the identifier and store it as a custom field on the order through a Craft event listener, server-side.

  • Event source: the Craft Commerce order-complete event

    Fire from the event listener in PHP rather than a Twig template, which may be cached.

  • Dispatch to Outbrain

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

  • Reversals where they exist

    Refunds and cancelled orders are recorded against the order.

Written guarantee

95%+ tracking accuracy

Measured against Craft Commerce's order records in your own database, filtered to completed.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Craft → Outbrain questions, answered

Capture the Outbrain click identifier on the article page, store it on the cart, and send the completed order server-side with a shared event ID. Orders often come days after the first article visit.

Free · 30 min

Get Craft and Outbrain joined properly

Free30 minutesNo obligation