Connecting Gravity Forms to AppsFlyer
Gravity Forms stores the entry in your own WordPress database, which makes it one of the easier sources to join correctly. 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 Gravity Forms entry 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
Gravity Forms into AppsFlyer only makes sense via a shared user ID
Don't post Gravity Forms entries to AppsFlyer as in-app events; they have no device and would distort network reporting. The working join is your own user ID: if the form creates an account and the app sets that value as the AppsFlyer customer user ID, join web signups to installs in your database. Most sites need no integration.
AppsFlyer attributes app installs and in-app events to a device. A Gravity Forms entry comes from a browser and carries no device identifier, so posting it to the server-to-server events API as if it were an in-app event either fails or attaches revenue to nothing. That is the default outcome of wiring the Webhooks Add-On straight to AppsFlyer.
The join that does work goes through your own user ID. If the form creates an account (for example with the User Registration add-on) and the app later sets the same value as the AppsFlyer customer user ID on login, you can tie the web signup to the device that installed. The Gravity Forms entry then becomes context on your side, not an AppsFlyer event. If you want web-to-app journeys attributed, check whether your AppsFlyer plan includes its web measurement product, which has its own SDK on the site rather than anything Gravity Forms sends.
For most WordPress sites with a lead or signup form, the minimal sane setup is no AppsFlyer integration at all: measure the form in web analytics, measure installs in AppsFlyer, and join them in your own database on user ID if the question ever matters. Do not forward form leads through AppsFlyer to ad networks; they would arrive without a device and distort the in-app reporting those networks optimize on.
Gravity Forms → AppsFlyer · what breaks
Why this join usually fails — Gravity Forms → AppsFlyer
- 01
The AppsFlyer device identifier, appsflyer_id never reaches Gravity Forms
The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce.
- 02
Dynamic population fails silently under page caching
The field is configured correctly and still arrives empty, because the visitor was served a cached page rendered for someone else. This is the most common Gravity Forms failure and it looks like nothing is wrong.
- 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.
Gravity Forms → AppsFlyer · the fix
What working looks like — Gravity Forms → AppsFlyer
The AppsFlyer device identifier, appsflyer_id on every entry
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
Gravity Forms → AppsFlyer · architecture
How Gravity Forms and AppsFlyer actually connect
- 1
Gravity Forms holds the truth
The entry lives in your database with every field value attached. You can query it, back it up and reconcile against it without depending on any third party, which is a real advantage over hosted form tools.
- 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 Gravity Forms entry.
- 4
The event source decides reliability
Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.
- 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.
Gravity Forms → AppsFlyer · normal or broken
Working vs. broken, side by side — Gravity Forms → AppsFlyer
Normal, not a fault
The AppsFlyer device identifier, appsflyer_id present on the entry
Sent from the gform_after_submission hook
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
The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce.
Sent from the browser
The field is configured correctly and still arrives empty, because the visitor was served a cached page rendered for someone else. This is the most common Gravity Forms failure and it looks like nothing is wrong.
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
Gravity Forms → AppsFlyer · diagnose
Diagnostic order — Gravity Forms → AppsFlyer
- 01
Count entrys carrying the AppsFlyer device identifier, appsflyer_id
- 02
Follow one real conversion end to end
- 03
Submit a test entry through a cached page
Not through a logged-in admin session, which bypasses the cache. If the hidden field is empty on the cached path and populated on the admin path, caching is your cause.
- 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.
Gravity Forms → AppsFlyer · prove
How it gets proven — Gravity Forms → AppsFlyer
Source of truth
The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.
- The AppsFlyer device identifier, appsflyer_id confirmed present on a live entry.
- In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
- Entry meta confirmed populated on a submission made from a fully cached page as an anonymous visitor.
Gravity Forms → AppsFlyer · free audit
What we check in the free audit
- Count entrys carrying the AppsFlyer device identifier, appsflyer_id
- Follow one real conversion end to end
- Submit a test entry through a cached page
- Check what share of your revenue happens in the app at all
- Read the match rate, not the success message
Checked against
The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.
Free30 minutesNo obligation
Gravity Forms → AppsFlyer · when not to buy
When you don't need this — Gravity Forms → AppsFlyer
- Measure identifier coverage yourself first — pull your last hundred entrys and count how many carry the AppsFlyer device identifier, appsflyer_id.
- If your site has no caching layer and one form, a developer can wire this in an afternoon. Worth trying before hiring anyone.
- 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.
Gravity Forms → AppsFlyer · what we deliver
What gets built — Gravity Forms → AppsFlyer
Identifier capture into Gravity Forms
Hidden field with 'allow field to be populated dynamically' enabled and a parameter name set, plus a cookie fallback via a gform filter so the identifier survives a visitor who browsed several pages before converting.
Event source: the gform_after_submission hook
Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.
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
Nothing to reverse, though entries marked spam should be excluded from the send.
Written guarantee
95%+ tracking accuracy
Measured against The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Gravity Forms → AppsFlyer questions, answered
Not directly. A web form has no AppsFlyer device ID; the only clean link is a user ID your app later sets as the customer user ID.
No. They will be unattributable or misattributed and can be forwarded to ad networks as if they happened in the app.
Almost always because the AppsFlyer device identifier, appsflyer_id never reached the Gravity Forms entry. The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce. 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.
The gform_after_submission hook. Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.
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 Gravity Forms → AppsFlyer
- Gravity Forms → Google AdsConnecting Gravity Forms to Google Ads
- Gravity Forms → MetaConnecting Gravity Forms to Meta Conversions API
- Gravity Forms → GA4Connecting Gravity Forms to GA4
RELATED GUIDES
Where Gravity Forms → AppsFlyer fits in the rest of your tracking
- Typeform → AppsFlyerConnecting Typeform to AppsFlyer
- Tally → AppsFlyerConnecting Tally to AppsFlyer
- Cognito Forms → AppsFlyerConnecting Cognito Forms to AppsFlyer
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Jotform → AppsFlyerConnecting Jotform to AppsFlyer
- Formidable Forms → AppsFlyerConnecting Formidable Forms to AppsFlyer
- Contact Form 7 → AppsFlyerConnecting Contact Form 7 to AppsFlyer
- Ninja Forms → AppsFlyerConnecting Ninja Forms to AppsFlyer
Free · 30 min
Get Gravity Forms and AppsFlyer joined properly
Free30 minutesNo obligation
