Connecting Concrete CMS to PostHog
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. PostHog can be self-hosted, which changes the calculus entirely: the data stays on infrastructure you control, and so does the responsibility for everything that goes wrong with it. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Concrete CMS order before the conversion happens, because PostHog can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
PostHog on Concrete CMS: one distinct_id for web and orders
Use PostHog's PHP library in a Concrete CMS package to capture Express entries and commerce add-on orders server-side, with the order number as a property and event UUID source. Use the Concrete user ID for logged-in users, PostHog's anonymous ID for guests, stored as an order attribute for gateway callbacks. Check block caching on identity-printing blocks.
PostHog has an official PHP library, so a Concrete CMS package can capture events server-side without a separate service. The decision is the distinct_id. For logged-in Concrete users, use the Concrete user ID and call identify in the browser on login so anonymous browsing merges into that person. For guests, read PostHog's anonymous ID from its cookie at checkout or form submission and capture the server event with it.
Send new Express form entries and the commerce add-on's order-completed event with the order number as a property and, if you supply an event UUID, one derived from the order number so a retried send does not duplicate. If payment completes through a gateway callback, that request has no browser cookie; store the PostHog ID as an order attribute at checkout and read it back in the callback.
If you self-host PostHog on a subdomain of the Concrete site, it is first-party and survives most blockers, and its uptime is yours to watch. The PostHog script is static, so caching does not touch it, but an identify call printed into a template does. Concrete normally bypasses its full page cache for logged-in users; still check block caching on any block that prints user data, or one person's identity can be served to others.
Concrete CMS → PostHog · what breaks
Why this join usually fails — Concrete CMS → PostHog
- 01
The distinct_id 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.
- 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.
- 03
Self-hosting the analytics and the outage together
The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.
- 04
Nothing reconciles afterwards
PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.
Concrete CMS → PostHog · the fix
What working looks like — Concrete CMS → PostHog
The distinct_id on every order
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Concrete CMS → PostHog · architecture
How Concrete CMS and PostHog actually connect
- 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
PostHog needs a click to match
PostHog needs a distinct_id, an event name and its properties. Self-hosted instances additionally need the ingestion endpoint reachable and the project API key correct, which is a class of failure hosted tools do not have.
- 3
The identifier is the bridge
The distinct_id, captured at the visit and carried into the Concrete CMS order.
- 4
The event source decides reliability
Fire server-side. Page caching means the confirmation template may not execute.
- 5
Deduplication at the destination
PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.
Concrete CMS → PostHog · normal or broken
Working vs. broken, side by side — Concrete CMS → PostHog
Normal, not a fault
The distinct_id present on the order
Sent from the order-completed event from your commerce add-on
Deduplicated correctly
PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.
Reconciles with the source
Actually broken
The distinct_id 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
The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.
Nobody has reconciled it
Concrete CMS → PostHog · diagnose
Diagnostic order — Concrete CMS → PostHog
- 01
Count orders carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Identify which commerce add-on is in use
That decides where the order is created and what events exist to hook.
- 04
Check ingestion health and disk before debugging any missing event
On self-hosted instances the answer is infrastructure far more often than it is instrumentation.
- 05
Read the match rate, not the success message
PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.
Concrete CMS → PostHog · prove
How it gets proven — Concrete CMS → PostHog
Source of truth
Your own database's order records, at agreed states.
- The distinct_id confirmed present on a live order.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Order attribute confirmed populated on a purchase through a cached page.
Concrete CMS → PostHog · free audit
What we check in the free audit
- Count orders carrying the distinct_id
- Follow one real conversion end to end
- Identify which commerce add-on is in use
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Your own database's order records, at agreed states.
Free30 minutesNo obligation
Concrete CMS → PostHog · when not to buy
When you don't need this — Concrete CMS → PostHog
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
- 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 have no reason to keep the data on your own infrastructure and no team to run it, the hosted product removes the only real downside of this one.
Concrete CMS → PostHog · what we deliver
What gets built — Concrete CMS → PostHog
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 PostHog
The PostHog capture API, posted server-side from your backend to your own instance or to PostHog Cloud.
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.
From $400 · See packages
FAQ
Concrete CMS → PostHog questions, answered
Use PostHog's PHP library in a listener on the commerce add-on's order event, with the browser's distinct_id stored on the order at checkout.
An identify call printed into a cached page or block is probably being served to other visitors. Move it to client-side code that reads the session.
Almost always because the distinct_id never reached the Concrete CMS order. 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. Measure coverage before debugging the dispatch.
PostHog identifies by distinct_id with an alias call to merge anonymous and identified users. On a self-hosted instance you also control the ingestion endpoint, which means the identifier survives ad blockers that would kill a third-party pixel — one of the few genuine technical advantages available to a first-party setup.
The order-completed event from your commerce add-on. Fire server-side. Page caching means the confirmation template may not execute.
PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.
More on Concrete CMS → PostHog
- Concrete CMS → Google AdsConnecting Concrete CMS to Google Ads
- Concrete CMS → MetaConnecting Concrete CMS to Meta Conversions API
- Concrete CMS → GA4Connecting Concrete CMS to GA4
RELATED GUIDES
Where Concrete CMS → PostHog fits in the rest of your tracking
- Drupal Commerce → PostHogConnecting Drupal Commerce to PostHog
- Craft → PostHogConnecting Craft CMS to PostHog
- Sanity → PostHogConnecting Sanity to PostHog
- Concrete CMS → Adobe AnalyticsConnecting Concrete CMS to Adobe Analytics
- Concrete CMS → MixpanelConnecting Concrete CMS to Mixpanel
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Statamic → PostHogConnecting Statamic to PostHog
- AEM → PostHogConnecting Adobe Experience Manager to PostHog
Free · 30 min
Get Concrete CMS and PostHog joined properly
Free30 minutesNo obligation
