Connecting Contact Form 7 to AppsFlyer
Contact Form 7 is free, everywhere, and stores nothing by default — which is the whole problem. 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 Contact Form 7 submission 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
Contact Form 7 in AppsFlyer: only when the form runs inside your app
Desktop Contact Form 7 submissions have no appsflyer_id, so AppsFlyer is usually the wrong destination. For a form shown in your app's webview, have the app append its appsflyer_id and customer user ID to the URL, capture them with hidden default:get fields, and post a no-revenue in-app event from wpcf7_mail_sent through the server-to-server API.
AppsFlyer attributes events to an install through appsflyer_id. A Contact Form 7 submission from a desktop browser has no device identifier and no install behind it, so sending it as an in-app event either lands as organic or gets discarded. For most WordPress lead forms the honest answer is that AppsFlyer is the wrong destination.
The real case is a WordPress form loaded inside your app: a support request, a quote form or a booking inquiry shown in a webview. The submitting user does have an appsflyer_id, but the web page cannot see it unless the app passes it. Have the app append its appsflyer_id and your customer user ID to the webview URL, capture both with [hidden] fields using default:get, and post an in-app event from the wpcf7_mail_sent hook through the server-to-server events API. Name it something your media sources map, such as a lead or request event, with no revenue.
The usual breakage is the app opening the form in the external browser instead of an embedded webview, or a later redirect inside the site dropping the query string, so the hidden field arrives empty. Measure the share of app-originated submissions that carry an appsflyer_id before trusting the event counts. Web visitors who submit the same form should go to your web ad platforms, not AppsFlyer, unless your plan includes AppsFlyer's web measurement product; check that separately.
Contact Form 7 → AppsFlyer · what breaks
Why this join usually fails — Contact Form 7 → AppsFlyer
- 01
The AppsFlyer device identifier, appsflyer_id never reaches Contact Form 7
There is no entries table to write to, so the identifier has to be captured into a hidden field and persisted by whatever you add for storage. Contact Form 7 submits over AJAX, so the page does not reload and anything expecting a navigation event never fires.
- 02
AJAX submission means no page load to hook
Setups that fire a conversion on thank-you-page load simply never fire. Setups that listen for the DOM event miss anyone whose script execution was blocked or deferred.
- 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.
Contact Form 7 → AppsFlyer · the fix
What working looks like — Contact Form 7 → AppsFlyer
The AppsFlyer device identifier, appsflyer_id on every submission
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
Contact Form 7 → AppsFlyer · architecture
How Contact Form 7 and AppsFlyer actually connect
- 1
Contact Form 7 holds the truth
Out of the box Contact Form 7 emails the submission and keeps no record. Before any attribution work is meaningful, submissions have to be stored somewhere queryable. That is step one and it is not optional.
- 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 Contact Form 7 submission.
- 4
The event source decides reliability
Fire server-side from PHP. The browser-side wpcf7mailsent DOM event exists and is commonly used, but it depends on the visitor's browser executing correctly and on the AJAX response arriving — the server hook does not.
- 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.
Contact Form 7 → AppsFlyer · normal or broken
Working vs. broken, side by side — Contact Form 7 → AppsFlyer
Normal, not a fault
The AppsFlyer device identifier, appsflyer_id present on the submission
Sent from the wpcf7_mail_sent 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
There is no entries table to write to, so the identifier has to be captured into a hidden field and persisted by whatever you add for storage. Contact Form 7 submits over AJAX, so the page does not reload and anything expecting a navigation event never fires.
Sent from the browser
Setups that fire a conversion on thank-you-page load simply never fire. Setups that listen for the DOM event miss anyone whose script execution was blocked or deferred.
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
Contact Form 7 → AppsFlyer · diagnose
Diagnostic order — Contact Form 7 → AppsFlyer
- 01
Count submissions carrying the AppsFlyer device identifier, appsflyer_id
- 02
Follow one real conversion end to end
- 03
Confirm submissions are being stored at all
If the only record is an email inbox, there is nothing to reconcile and no way to prove any number. Fix storage before touching attribution.
- 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.
Contact Form 7 → AppsFlyer · prove
How it gets proven — Contact Form 7 → AppsFlyer
Source of truth
Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.
- The AppsFlyer device identifier, appsflyer_id confirmed present on a live submission.
- In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
- Stored submissions confirmed to match the email record for the same period, before any attribution claim is made.
Contact Form 7 → AppsFlyer · free audit
What we check in the free audit
- Count submissions carrying the AppsFlyer device identifier, appsflyer_id
- Follow one real conversion end to end
- Confirm submissions are being stored at all
- Check what share of your revenue happens in the app at all
- Read the match rate, not the success message
Checked against
Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.
Free30 minutesNo obligation
Contact Form 7 → AppsFlyer · when not to buy
When you don't need this — Contact Form 7 → AppsFlyer
- Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the AppsFlyer device identifier, appsflyer_id.
- If you are on Contact Form 7 and serious about attribution, moving to a form plugin that stores entries is often cheaper than working around the one that does not. We will say so rather than bill for the workaround.
- 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.
Contact Form 7 → AppsFlyer · what we deliver
What gets built — Contact Form 7 → AppsFlyer
Identifier capture into Contact Form 7
Hidden field populated from a first-party cookie, plus a storage layer so the submission and its identifier survive past the email. The wpcf7_before_send_mail hook is where both happen.
Event source: the wpcf7_mail_sent hook
Fire server-side from PHP. The browser-side wpcf7mailsent DOM event exists and is commonly used, but it depends on the visitor's browser executing correctly and on the AJAX response arriving — the server hook does not.
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. Spam filtering before the send is the equivalent concern.
Written guarantee
95%+ tracking accuracy
Measured against Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Contact Form 7 → AppsFlyer questions, answered
Only for submissions made inside your app where the app passes its appsflyer_id into the form URL. Web visitors have no device identifier to attribute.
Not as in-app events. Send website leads to the web ad platforms that drove them and keep AppsFlyer for installs and activity that happens in the app.
Almost always because the AppsFlyer device identifier, appsflyer_id never reached the Contact Form 7 submission. There is no entries table to write to, so the identifier has to be captured into a hidden field and persisted by whatever you add for storage. Contact Form 7 submits over AJAX, so the page does not reload and anything expecting a navigation event never fires. 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 wpcf7_mail_sent hook. Fire server-side from PHP. The browser-side wpcf7mailsent DOM event exists and is commonly used, but it depends on the visitor's browser executing correctly and on the AJAX response arriving — the server hook does not.
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 Contact Form 7 → AppsFlyer
- Contact Form 7 → GA4Connecting Contact Form 7 to GA4
- Contact Form 7 → Google AdsConnecting Contact Form 7 to Google Ads
- Contact Form 7 → MetaConnecting Contact Form 7 to Meta Conversions API
RELATED GUIDES
Where Contact Form 7 → AppsFlyer fits in the rest of your tracking
- Gravity Forms → AppsFlyerConnecting Gravity Forms to AppsFlyer
- Formidable Forms → AppsFlyerConnecting Formidable Forms to AppsFlyer
- Tally → AppsFlyerConnecting Tally to AppsFlyer
- Law firmsConversion tracking for law firms, without sending case details anywhere
- Jotform → AppsFlyerConnecting Jotform to AppsFlyer
- WPForms → AppsFlyerConnecting WPForms to AppsFlyer
- Fluent Forms → AppsFlyerConnecting Fluent Forms to AppsFlyer
- Paperform → AppsFlyerConnecting Paperform to AppsFlyer
Free · 30 min
Get Contact Form 7 and AppsFlyer joined properly
Free30 minutesNo obligation
