Connecting Contentful to AppsFlyer
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. AppsFlyer exists because mobile app attribution is a different problem from web attribution, and on iOS a large share of it is now aggregated and delayed by design rather than by accident. The join between them succeeds or fails on one thing: whether the AppsFlyer device identifier, appsflyer_id reaches the front-end conversion, not a Contentful record before the conversion happens, because AppsFlyer can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Contentful and AppsFlyer: deep link straight to the entry
With Contentful and AppsFlyer, the useful work is deep linking: put the Contentful entry ID, not the slug, in the OneLink deep link value so the app opens the promised entry, with a fallback for archived entries. Purchases still go to AppsFlyer through the SDK or server-to-server API from billing with the appsflyer_id, optionally with entry ID as a property.
When one Contentful space feeds both the website and the app, the useful AppsFlyer work is deep linking, not event dispatch. A OneLink that carries the Contentful entry ID or slug in its deep link value lets the installed app open the exact article, product or offer the ad promised, instead of the home screen. Without it, a campaign promoting one piece of content drops new users somewhere generic and the first session looks like a failure.
Use a stable identifier. Slugs change when editors rename content; entry IDs do not. If the app looks up the entry by ID from the deep link value, a renamed slug in Contentful cannot break campaign links already running. Unpublished entries are the other trap: a OneLink still in circulation pointing to an archived entry needs a fallback screen, or the app opens to an error.
Conversions still come from the money system. In-app purchases go to AppsFlyer through the SDK or the server-to-server API from billing, with the appsflyer_id; Contentful contributes nothing to that event. Adding the entry ID as an event property is worth doing, since it lets you see revenue by the content that brought users in.
Contentful → AppsFlyer · what breaks
Why this join usually fails — Contentful → AppsFlyer
- 01
The AppsFlyer device identifier, appsflyer_id 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.
- 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.
- 03
Web conversions sent to a mobile attribution platform
This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.
- 04
Nothing reconciles afterwards
AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.
Contentful → AppsFlyer · the fix
What working looks like — Contentful → AppsFlyer
The AppsFlyer device identifier, appsflyer_id on every conversion
Conversions arriving in AppsFlyer
The event is attributed to the install source, forwarded to whichever networks are configured, and appears in the cohort reporting.
Reconciled against the source
Contentful → AppsFlyer · architecture
How Contentful and AppsFlyer actually connect
- 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
AppsFlyer needs a click to match
AppsFlyer needs the device identifier and an event name it recognizes, plus the revenue value for in-app purchases. A server event about a user with no linked device cannot be attributed to an install.
- 3
The identifier is the bridge
The AppsFlyer device identifier, appsflyer_id, captured at the visit and carried into the front-end conversion, not a Contentful record.
- 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
Deduplication at the destination
AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.
Contentful → AppsFlyer · normal or broken
Working vs. broken, side by side — Contentful → AppsFlyer
Normal, not a fault
The AppsFlyer device identifier, appsflyer_id present on the conversion
Sent from your commerce, CRM or billing system
Deduplicated correctly
AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.
Reconciles with the source
Actually broken
The AppsFlyer device identifier, appsflyer_id 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
This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.
Nobody has reconciled it
Contentful → AppsFlyer · diagnose
Diagnostic order — Contentful → AppsFlyer
- 01
Count conversions carrying the AppsFlyer device identifier, appsflyer_id
- 02
Follow one real conversion end to end
- 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.
- 04
Check what share of your revenue happens in the app at all
If most purchases are on the web, AppsFlyer is not your conversion destination and the work belongs somewhere else entirely.
- 05
Read the match rate, not the success message
AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.
Contentful → AppsFlyer · prove
How it gets proven — Contentful → AppsFlyer
Source of truth
Whatever system takes the money — Contentful holds none of it.
- The AppsFlyer device identifier, appsflyer_id confirmed present on a live conversion.
- In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
- The conversion confirmed sourced from the commerce or CRM system rather than from anything in the content layer.
Contentful → AppsFlyer · free audit
What we check in the free audit
- Count conversions carrying the AppsFlyer device identifier, appsflyer_id
- Follow one real conversion end to end
- Establish which system holds the conversion before anything else
- Check what share of your revenue happens in the app at all
- Read the match rate, not the success message
Checked against
Whatever system takes the money — Contentful holds none of it.
Free30 minutesNo obligation
Contentful → AppsFlyer · when not to buy
When you don't need this — Contentful → AppsFlyer
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the AppsFlyer device identifier, appsflyer_id.
- 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 mobile app, this is not a destination for you. If you have one but sell mostly on the web, send web conversions to your ad platforms directly and use AppsFlyer only for install and in-app events.
Contentful → AppsFlyer · what we deliver
What gets built — Contentful → AppsFlyer
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 AppsFlyer
The AppsFlyer server-to-server events API, posted from your billing system with the device identifier and revenue.
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.
From $400 · See packages
FAQ
Contentful → AppsFlyer questions, answered
Not for conversions. The practical link is putting Contentful entry IDs in OneLink deep link values so the app opens the content the ad promised.
The entry ID. Slugs change when editors rename content and break links already running in campaigns.
Almost always because the AppsFlyer device identifier, appsflyer_id never reached the front-end conversion, not a Contentful record. 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. Measure coverage before debugging the dispatch.
AppsFlyer assigns its own device ID and matches installs to clicks through referrer data on Android and Apple's frameworks on iOS. There is no durable cross-device identifier. On iOS without ATT consent, attribution falls back to SKAdNetwork, which returns aggregated conversion values on a delay with no user-level detail at all — so a share of your installs will be attributable only in aggregate, permanently.
Your commerce, CRM or billing system. Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.
AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.
More on Contentful → AppsFlyer
- Contentful → Google AdsConnecting Contentful to Google Ads
- Contentful → MetaConnecting Contentful to Meta Conversions API
- Contentful → GA4Connecting Contentful to GA4
RELATED GUIDES
Where Contentful → AppsFlyer fits in the rest of your tracking
- Drupal Commerce → AppsFlyerConnecting Drupal Commerce to AppsFlyer
- Concrete CMS → AppsFlyerConnecting Concrete CMS to AppsFlyer
- Duda → AppsFlyerConnecting Duda to AppsFlyer
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Ghost → AppsFlyerConnecting Ghost memberships to AppsFlyer
- Sanity → AppsFlyerConnecting Sanity to AppsFlyer
- Sitecore → AppsFlyerConnecting Sitecore to AppsFlyer
- Umbraco → AppsFlyerConnecting Umbraco to AppsFlyer
Free · 30 min
Get Contentful and AppsFlyer joined properly
Free30 minutesNo obligation
