Skip to main content
Concrete CMS → SegmentIntegration guide

Connecting Concrete CMS to Segment

Concrete CMS is a self-hosted PHP CMS used by small organisations and agencies, typically with commerce added through an add-on rather than built in. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the Concrete CMS order before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Concrete CMS into Segment: one Order Completed from the add-on

Send one clean Order Completed from the Concrete CMS commerce add-on's order-completed listener with Segment's PHP library, using the order ID as order_id and messageId. Store analytics.js's anonymousId on the order at checkout, identify logged-in buyers by Concrete user ID, and add click IDs and consent as properties. Never bake identify calls into cached HTML.

Segment fans one event out to everything else, so the Concrete CMS job is producing a single clean Order Completed from the commerce add-on's order-completed listener, with the add-on's order ID as both order_id and messageId. Segment has a PHP library that can be called from that listener; check it supports your PHP version before building around it.

Identity is the harder part. Analytics.js sets an anonymousId in the browser, and your server event has to carry the same one, which means reading it at checkout and storing it on the order. For logged-in buyers, identify with the Concrete user ID and keep that exact ID in every downstream system. Put gclid, fbclid, rdt_cid and the visitor's consent state on the event as properties, because the ad destinations behind Segment need them and Segment will not invent them.

Full page caching bites here too: if identify calls with user traits are rendered into cached HTML, one visitor can be served another's traits. Make identify calls client-side from the session, never baked into cached markup. And if the only downstream tools are GA4 and one ad account, skip Segment; direct sends from the add-on event are simpler at this size.

Concrete CMS → Segment · what breaks

Why this join usually fails — Concrete CMS → Segment

  1. 01

    The userId and anonymousId never reaches Concrete CMS

    Full page caching and the add-on ecosystem both interfere. Because commerce is an add-on rather than core, where the order is created differs by which add-on is installed.

  2. 02

    Commerce as an add-on, not a core feature

    Which add-on is installed determines the entire integration surface, so nothing transfers between two Concrete sites without checking first.

  3. 03

    One bad event multiplied across every destination

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  4. 04

    Nothing reconciles afterwards

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

Concrete CMS → Segment · the fix

What working looks like — Concrete CMS → Segment

  • The userId and anonymousId on every order

  • Conversions arriving in Segment

    Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.

  • Reconciled against the source

Concrete CMS → Segment · architecture

How Concrete CMS and Segment actually connect

  1. 1

    Concrete CMS holds the truth

    Self-hosted means you own and can query the data directly, which makes reconciliation straightforward once the identifier is present.

  2. 2

    Segment needs a click to match

    Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.

  3. 3

    The identifier is the bridge

    The userId and anonymousId, captured at the visit and carried into the Concrete CMS order.

  4. 4

    The event source decides reliability

    Fire server-side. Page caching means the confirmation template may not execute.

  5. 5

    Deduplication at the destination

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

Concrete CMS → Segment · normal or broken

Working vs. broken, side by side — Concrete CMS → Segment

Normal, not a fault

  • The userId and anonymousId present on the order

  • Sent from the order-completed event from your commerce add-on

  • Deduplicated correctly

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

  • Reconciles with the source

Actually broken

  • The userId and anonymousId missing on most records

    Full page caching and the add-on ecosystem both interfere. Because commerce is an add-on rather than core, where the order is created differs by which add-on is installed.

  • Sent from the browser

    Which add-on is installed determines the entire integration surface, so nothing transfers between two Concrete sites without checking first.

  • Counted twice, or not at all

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  • Nobody has reconciled it

Concrete CMS → Segment · diagnose

Diagnostic order — Concrete CMS → Segment

  1. 01

    Count orders carrying the userId and anonymousId

  2. 02

    Follow one real conversion end to end

  3. 03

    Identify which commerce add-on is in use

    That decides where the order is created and what events exist to hook.

  4. 04

    Check identity resolution before checking anything downstream

    If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.

  5. 05

    Read the match rate, not the success message

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

Concrete CMS → Segment · prove

How it gets proven — Concrete CMS → Segment

Source of truth

Your own database's order records, at agreed states.

  • The userId and anonymousId confirmed present on a live order.
  • An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
  • Order attribute confirmed populated on a purchase through a cached page.

Concrete CMS → Segment · free audit

What we check in the free audit

  • Count orders carrying the userId and anonymousId
  • Follow one real conversion end to end
  • Identify which commerce add-on is in use
  • Check identity resolution before checking anything downstream
  • Read the match rate, not the success message

Checked against

Your own database's order records, at agreed states.

Get my free conversion tracking audit

Free30 minutesNo obligation

Concrete CMS → Segment · when not to buy

When you don't need this — Concrete CMS → Segment

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the userId and anonymousId.
  • If your Concrete site is brochure-only with enquiries by form, treat it as a lead-gen site rather than a commerce one.
  • If you send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.

Concrete CMS → Segment · what we deliver

What gets built — Concrete CMS → Segment

  • Identifier capture into Concrete CMS

    Capture the identifier and persist it as order attribute data through an event listener, server-side.

  • Event source: the order-completed event from your commerce add-on

    Fire server-side. Page caching means the confirmation template may not execute.

  • Dispatch to Segment

    Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.

  • Reversals where they exist

    Order state changes recorded by the add-on.

Written guarantee

95%+ tracking accuracy

Measured against Your own database's order records, at agreed states.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Concrete CMS → Segment questions, answered

Call Segment's server-side track from the commerce add-on's order-completed event, with the order ID as messageId, the browser's anonymousId stored at checkout, and click IDs as properties.

Free · 30 min

Get Concrete CMS and Segment joined properly

Free30 minutesNo obligation