Skip to main content
Craft → Adobe AnalyticsIntegration guide

Connecting Craft CMS to Adobe Analytics

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. Adobe Analytics processes data on the way in through rules you configure, which means the same event can be recorded differently by two report suites and both will look authoritative. The join between them succeeds or fails on one thing: whether the Experience Cloud ID, plus whatever eVar you designate reaches the Craft Commerce order before the conversion happens, because Adobe Analytics can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Craft Commerce to Adobe Analytics: purchase ID and cached pages

Send Craft Commerce purchases server-side from the order-complete listener through Adobe's Edge or Data Insertion API, with the ECID captured into an order custom field at checkout and the order reference as purchase ID, avoiding cached confirmation templates. Record refunds as their own event, and check processing rules aren't overwriting your click-identifier eVar.

Adobe on a Craft build usually means an enterprise brand where an agency added the Web SDK or AppMeasurement to the layout template, and a second team owns the report suite. The data layer is the weak point: if the order confirmation template pushes the purchase into the data layer and that template is cached, by Blitz or a cache tag someone added for speed, one order's details can be served to more than one customer.

Adobe's purchase ID protects you only if it is the real one. Use the Craft Commerce order reference (or the order number, but pick one and never change it), and send the purchase server-side from the order-complete listener through the Edge or Data Insertion API, with the ECID captured into an order custom field at checkout. Then a closed tab or a cached confirmation page no longer decides whether the order exists in Adobe.

Refunds in Craft Commerce are recorded as transactions against the order, so the same listener can record them as their own event instead of leaving refunded revenue silently in the report suite; agree with the report suite owner how that event is configured. Before testing any of it, read the processing rules: a rule written years ago to tidy campaign values may be overwriting the eVar you assign the click identifier to, and nobody thinks to look there.

Craft → Adobe Analytics · what breaks

Why this join usually fails — Craft → Adobe Analytics

  1. 01

    The Experience Cloud ID, plus whatever eVar you designate 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

    Processing rules rewriting data before anyone sees it

    Rules run before storage and are frequently configured years earlier by someone who has left. A campaign variable can be overwritten, defaulted or dropped on the way in, and the reports will look consistent and be wrong.

  4. 04

    Nothing reconciles afterwards

    Use a raw data feed or Data Debugger to see what actually arrived, not the processed report. Those are different things and only one of them shows the truth.

Craft → Adobe Analytics · the fix

What working looks like — Craft → Adobe Analytics

  • The Experience Cloud ID, plus whatever eVar you designate on every order

  • Conversions arriving in Adobe Analytics

    The hit is processed through VISTA and processing rules, lands in the report suite, and becomes available under whatever allocation the eVar specifies.

  • Reconciled against the source

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

Craft → Adobe Analytics · architecture

How Craft and Adobe Analytics 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

    Adobe Analytics needs a click to match

    An eVar with the right persistence and allocation, an event configured in the report suite, and processing rules that do not quietly rewrite what arrived.

  3. 3

    The identifier is the bridge

    The Experience Cloud ID, plus whatever eVar you designate, 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

    Adobe deduplicates on purchase ID for orders. Omit it and a customer refreshing a confirmation page records the order again, which is the single most common inflation in Adobe implementations.

Craft → Adobe Analytics · normal or broken

Working vs. broken, side by side — Craft → Adobe Analytics

Normal, not a fault

  • The Experience Cloud ID, plus whatever eVar you designate 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

    Adobe deduplicates on purchase ID for orders. Omit it and a customer refreshing a confirmation page records the order again, which is the single most common inflation in Adobe implementations.

  • Reconciles with the source

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

Actually broken

  • The Experience Cloud ID, plus whatever eVar you designate 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

    Rules run before storage and are frequently configured years earlier by someone who has left. A campaign variable can be overwritten, defaulted or dropped on the way in, and the reports will look consistent and be wrong.

  • Nobody has reconciled it

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

Craft → Adobe Analytics · diagnose

Diagnostic order — Craft → Adobe Analytics

  1. 01

    Count orders carrying the Experience Cloud ID, plus whatever eVar you designate

  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

    Read the processing rules and the eVar allocation settings

    Before debugging the tag. On mature Adobe implementations the explanation is upstream of the browser far more often than in it.

  5. 05

    Read the match rate, not the success message

    Use a raw data feed or Data Debugger to see what actually arrived, not the processed report. Those are different things and only one of them shows the truth.

Craft → Adobe Analytics · prove

How it gets proven — Craft → Adobe Analytics

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 Experience Cloud ID, plus whatever eVar you designate confirmed present on a live order.
  • Orders reconciled against the raw feed with purchase ID deduplication verified, then against the processed report suite.
  • Order custom field confirmed populated on an order placed as an anonymous visitor through cache.

Craft → Adobe Analytics · free audit

What we check in the free audit

  • Count orders carrying the Experience Cloud ID, plus whatever eVar you designate
  • Follow one real conversion end to end
  • Read how this specific build handles order completion
  • Read the processing rules and the eVar allocation settings
  • 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 → Adobe Analytics · when not to buy

When you don't need this — Craft → Adobe Analytics

  • If Adobe Analytics 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 Experience Cloud ID, plus whatever eVar you designate.
  • If the original agency is still engaged, the fastest path is usually specifying the field and having them add the hook.
  • If you are already on GA4 and not obliged to use Adobe, running both means two versions of every number and a standing argument about which is right.

Craft → Adobe Analytics · what we deliver

What gets built — Craft → Adobe Analytics

  • 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 Adobe Analytics

    Server-side via the Data Insertion or Edge API, with the ECID and the configured variables.

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

The server, from the order-complete event in PHP, with the ECID captured during checkout. A browser-only purchase on a cached confirmation template can be duplicated or lost.

Free · 30 min

Get Craft and Adobe Analytics joined properly

Free30 minutesNo obligation