Connecting Statamic to Branch
Statamic is a flat-file CMS on Laravel, usually chosen by agencies for content sites where commerce is bolted on rather than central. Branch's real job is the web-to-app seam — a person clicks a link in a browser, installs the app, and something has to carry the context across an install that destroys every cookie involved. The join between them succeeds or fails on one thing: whether the Branch link click identifier and the deferred deep link payload reaches the Statamic or Laravel order record before the conversion happens, because Branch can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Statamic content to Branch deep links: stable keys, not slugs
Put the Statamic entry ID, not the URL slug, in Branch link data so renamed slugs do not break deep links, and create links with the Branch web SDK in the browser so static caching cannot freeze them. Map the same ID in the app. Statamic form submissions have no Branch identity, so send web conversions to ad platforms directly.
Branch fits a Statamic site that mirrors content in an app: articles, recipes or listings that exist both on the web and in the app. The deep link payload needs to tell the app which item to open after install, and the natural key is the Statamic entry ID, not the URL slug. Editors rename slugs freely in the control panel; every renamed entry then breaks every Branch link built on the old path.
Put the entry ID in the Branch link data, map the same ID in the app's content source, and let the Branch web SDK create links in the browser so static caching does not freeze them. If the app reads content from Statamic through its REST or GraphQL API, the ID is already shared, which is the cleanest version of this pair.
Server events are limited. A Statamic form submission has no Branch identity until the person installs and opens the app, so the server-to-server events API has nothing to join it to. Send web conversions to your ad platforms directly, and use Branch for what it is for: the click on a Statamic page, the install, and the first open that lands on the right entry.
Statamic → Branch · what breaks
Why this join usually fails — Statamic → Branch
- 01
The Branch link click identifier and the deferred deep link payload never reaches Statamic
Statamic's static caching serves pre-rendered files with no PHP execution at all, which means anything expecting server-side rendering per request simply does not run.
- 02
Static caching bypassing PHP entirely
Statamic's full static caching serves a file from disk. No PHP runs, so nothing dynamic happens — and this is invisible because the page looks perfect.
- 03
The install that erases the campaign
Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.
- 04
Nothing reconciles afterwards
Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.
Statamic → Branch · the fix
What working looks like — Statamic → Branch
The Branch link click identifier and the deferred deep link payload on every order
Conversions arriving in Branch
The event is attributed to the originating link and campaign, and forwarded to any configured downstream partners.
Reconciled against the source
Statamic → Branch · architecture
How Statamic and Branch actually connect
- 1
Statamic holds the truth
Because Statamic sits on Laravel, the commercial record is usually a database table your developers defined. That is the source of truth and it is fully under your control.
- 2
Branch needs a click to match
Branch needs the link click context matched to the app open, plus the event and its revenue. Without the deferred deep link payload there is nothing to join the install to.
- 3
The identifier is the bridge
The Branch link click identifier and the deferred deep link payload, captured at the visit and carried into the Statamic or Laravel order record.
- 4
The event source decides reliability
Fire from the application event. Static caching means the template that rendered the page may never have executed anything.
- 5
Deduplication at the destination
Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.
Statamic → Branch · normal or broken
Working vs. broken, side by side — Statamic → Branch
Normal, not a fault
The Branch link click identifier and the deferred deep link payload present on the order
Sent from your Laravel application's order event
Deduplicated correctly
Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.
Reconciles with the source
Actually broken
The Branch link click identifier and the deferred deep link payload missing on most records
Statamic's static caching serves pre-rendered files with no PHP execution at all, which means anything expecting server-side rendering per request simply does not run.
Sent from the browser
Statamic's full static caching serves a file from disk. No PHP runs, so nothing dynamic happens — and this is invisible because the page looks perfect.
Counted twice, or not at all
Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.
Nobody has reconciled it
Statamic → Branch · diagnose
Diagnostic order — Statamic → Branch
- 01
Count orders carrying the Branch link click identifier and the deferred deep link payload
- 02
Follow one real conversion end to end
- 03
Check whether full static caching is enabled
If it is, any per-request logic in a template is not running and never was.
- 04
Measure your organic install share and ask whether it is plausible
An implausibly large organic share is usually broken attribution rather than genuine word of mouth.
- 05
Read the match rate, not the success message
Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.
Statamic → Branch · prove
How it gets proven — Statamic → Branch
Source of truth
Whatever your Laravel application persists — Statamic's flat files hold content, not transactions.
- The Branch link click identifier and the deferred deep link payload confirmed present on a live order.
- Attributed installs and in-app purchases reconciled against your own user records, with the unattributed share stated.
- Order data confirmed persisted on a purchase made while full static caching was active.
Statamic → Branch · free audit
What we check in the free audit
- Count orders carrying the Branch link click identifier and the deferred deep link payload
- Follow one real conversion end to end
- Check whether full static caching is enabled
- Measure your organic install share and ask whether it is plausible
- Read the match rate, not the success message
Checked against
Whatever your Laravel application persists — Statamic's flat files hold content, not transactions.
Free30 minutesNo obligation
Statamic → Branch · when not to buy
When you don't need this — Statamic → Branch
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Branch link click identifier and the deferred deep link payload.
- If commerce lives in a separate system entirely, work there — Statamic is the content layer.
- If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.
Statamic → Branch · what we deliver
What gets built — Statamic → Branch
Identifier capture into Statamic
Capture the identifier and persist it through a Laravel event listener into your own order table, entirely outside the static cache path.
Event source: your Laravel application's order event
Fire from the application event. Static caching means the template that rendered the page may never have executed anything.
Dispatch to Branch
The Branch server-to-server events API, posted from your backend with the user identity and event data.
Reversals where they exist
Whatever your application defines as a refund.
Written guarantee
95%+ tracking accuracy
Measured against Whatever your Laravel application persists — Statamic's flat files hold content, not transactions.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Statamic → Branch questions, answered
They are probably keyed on URL slugs that editors renamed. Key deep link data on the Statamic entry ID instead.
Not until the person installs and opens the app. Send web conversions to your ad platforms directly.
Almost always because the Branch link click identifier and the deferred deep link payload never reached the Statamic or Laravel order record. Statamic's static caching serves pre-rendered files with no PHP execution at all, which means anything expecting server-side rendering per request simply does not run. Measure coverage before debugging the dispatch.
Branch stores the click context and replays it into the app on first open, which is how a marketing campaign survives an install. That handoff is probabilistic on iOS and increasingly constrained, so the deep link data can arrive incomplete or not at all — and when it does not, the user looks organic.
Your Laravel application's order event. Fire from the application event. Static caching means the template that rendered the page may never have executed anything.
Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.
More on Statamic → Branch
- Statamic → Google AdsConnecting Statamic to Google Ads
- Statamic → MetaConnecting Statamic to Meta Conversions API
- Statamic → GA4Connecting Statamic to GA4
RELATED GUIDES
Where Statamic → Branch fits in the rest of your tracking
- Duda → BranchConnecting Duda to Branch
- Sitecore → BranchConnecting Sitecore to Branch
- Sanity → BranchConnecting Sanity to Branch
- Statamic → AppsFlyerConnecting Statamic to AppsFlyer
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Ghost → BranchConnecting Ghost memberships to Branch
- Webflow → BranchConnecting Webflow to Branch
- Contentful → BranchConnecting Contentful to Branch
Free · 30 min
Get Statamic and Branch joined properly
Free30 minutesNo obligation
