Skip to main content
Contentful → BranchIntegration guide

Connecting Contentful to Branch

Contentful is headless content only — it has no checkout, no orders and no customers, which is the single most important thing to establish before anyone quotes for work. 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 front-end conversion, not a Contentful 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

Contentful and Branch: shared links that survive the install

With Contentful and Branch, shared in-app content links should carry the Contentful entry ID through the install, and the web fallback should resolve by entry ID or keep old-slug redirects, or renamed slugs 404 for non-app users. Branch conversion events come from the app SDK and billing backend, with the originating entry ID as a property.

When a Contentful space powers both the app and the website, people share content from inside the app and the link opens on someone else's phone without the app installed. Branch's job here is to send that person to the web version of the same entry, rendered by your Contentful front end, and carry the entry reference through the install so the app opens to it afterwards. The Contentful entry ID is the natural canonical identifier for those links.

The web fallback is where this breaks. If the front end resolves pages by slug and an editor renames one, the fallback 404s while the app still opens correctly, so the shared link works for app users and fails for everyone you hoped to acquire. Resolve fallbacks by entry ID, or keep redirects from old slugs, and test a link from an archived entry so it lands somewhere sensible.

Branch's conversion events still come from your app SDK and billing backend, not from Contentful. Adding the originating entry ID as an event property lets you see which shared content produces installs and purchases. If nobody shares content from the app, or the app has little content of its own, this whole setup has little to carry.

Contentful → Branch · what breaks

Why this join usually fails — Contentful → Branch

  1. 01

    The Branch link click identifier and the deferred deep link payload never reaches Contentful

    Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.

  2. 02

    Blaming the CMS for a front-end problem

    Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.

  3. 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.

  4. 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.

Contentful → Branch · the fix

What working looks like — Contentful → Branch

  • The Branch link click identifier and the deferred deep link payload on every conversion

  • 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

Contentful → Branch · architecture

How Contentful and Branch actually connect

  1. 1

    Contentful holds the truth

    Contentful stores content and serves it via API. The commercial record lives in your commerce platform, your CRM or your billing system, and that is where measurement belongs.

  2. 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. 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 front-end conversion, not a Contentful record.

  4. 4

    The event source decides reliability

    Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.

  5. 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.

Contentful → Branch · normal or broken

Working vs. broken, side by side — Contentful → Branch

Normal, not a fault

  • The Branch link click identifier and the deferred deep link payload present on the conversion

  • Sent from your commerce, CRM or billing system

  • 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

    Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.

  • Sent from the browser

    Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.

  • 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

Contentful → Branch · diagnose

Diagnostic order — Contentful → Branch

  1. 01

    Count conversions carrying the Branch link click identifier and the deferred deep link payload

  2. 02

    Follow one real conversion end to end

  3. 03

    Establish which system holds the conversion before anything else

    In a headless stack it is never the CMS, and starting there wastes the engagement.

  4. 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.

  5. 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.

Contentful → Branch · prove

How it gets proven — Contentful → Branch

Source of truth

Whatever system takes the money — Contentful holds none of it.

  • The Branch link click identifier and the deferred deep link payload confirmed present on a live conversion.
  • Attributed installs and in-app purchases reconciled against your own user records, with the unattributed share stated.
  • The conversion confirmed sourced from the commerce or CRM system rather than from anything in the content layer.

Contentful → Branch · free audit

What we check in the free audit

  • Count conversions carrying the Branch link click identifier and the deferred deep link payload
  • Follow one real conversion end to end
  • Establish which system holds the conversion before anything else
  • Measure your organic install share and ask whether it is plausible
  • Read the match rate, not the success message

Checked against

Whatever system takes the money — Contentful holds none of it.

Get my free conversion tracking audit

Free30 minutesNo obligation

Contentful → Branch · when not to buy

When you don't need this — Contentful → Branch

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the Branch link click identifier and the deferred deep link payload.
  • There is no Contentful-specific tracking build. The work is in your front-end framework and your commerce system, and we would say so rather than bill for the CMS.
  • If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.

Contentful → Branch · what we deliver

What gets built — Contentful → Branch

  • Identifier capture into Contentful

    Capture and persist the identifier in the front-end application, server-side, and carry it into whichever system records the conversion.

  • Event source: your commerce, CRM or billing system

    Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.

  • 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

    Handled wherever the money lives.

Written guarantee

95%+ tracking accuracy

Measured against Whatever system takes the money — Contentful holds none of it.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Contentful → Branch questions, answered

Yes, as the content behind them: use the Contentful entry ID as the link's identifier so the app and the web fallback open the same entry.

Free · 30 min

Get Contentful and Branch joined properly

Free30 minutesNo obligation