Skip to main content
Gravity Forms → AppsFlyerIntegration guide

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

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

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

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

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

    The identifier is the bridge

    The AppsFlyer device identifier, appsflyer_id, captured at the visit and carried into the Gravity Forms entry.

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

  1. 01

    Count entrys carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

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

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

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

Get my free conversion tracking audit

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.

Get my free conversion tracking audit

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.

Free · 30 min

Get Gravity Forms and AppsFlyer joined properly

Free30 minutesNo obligation