gmi.software
01 · Your app

Mobile apps

When the app is slow to change, crashes or nobody owns it.

  • Develop or take over an app
  • Loyalty apps
  • Mobile app code audit
  • App maintenance and releases

SFD: 100,000+ downloads, 4.9 App Store rating

02 · Your shop

Online shops

When the platform takes a cut of every sale or blocks what you need.

  • Online shop development
  • Shop app analytics
  • Plan and prototype before you build

120+ projects delivered

03 · Systems behind them

Integrations

When orders, stock and points are copied by hand.

  • ERP, warehouse and payments
  • AI for one manual process
  • Workshops and estimate

100+ integrations

Before a call
  • App cost estimateScope and a budget range
  • Shop platform adviserDecisions, risks and options
  • Shop cost over 5 yearsOff-the-shelf or custom, compared

After workshops: an agreed scope and a fixed price for delivering it

All services →
SFDLoyalty and shopping app100,000+ downloads · 4.9 App Store ratingMój Świat KsiążkiLoyalty programme for a bookstore chain100,000+ downloadsEMKAMedical waste tracking app5000+ downloads in first month
All 120+ projects →App ideas library
TeamAbout usWho we are and how we workCareersHow we work and open roles
Contact and stackContact[email protected]TechnologiesReact Native, MedusaJS, Node.js and the rest
Reviews5.0 on Google4.9 on ClutchClutch ↗ (opens in a new tab)
Blog
ENBook a free consultation
What we do+−

01 · Your app

Mobile apps

  • Develop or take over an app
  • Loyalty apps
  • Mobile app code audit
  • App maintenance and releases

02 · Your shop

Online shops

  • Online shop development
  • Shop app analytics
  • Plan and prototype before you build

03 · Systems behind them

Integrations

  • ERP, warehouse and payments
  • AI for one manual process
  • Workshops and estimate

Before a call

  • App cost estimateScope and a budget range
  • Shop platform adviserDecisions, risks and options
  • Shop cost over 5 yearsOff-the-shelf or custom, compared
All services →
Projects+−
  • SFD100,000+ downloads · 4.9 App Store rating
  • Mój Świat Książki100,000+ downloads
  • EMKA5000+ downloads in first month
  • All 120+ projects →
  • App ideas library
Company+−
  • About usWho we are and how we work
  • CareersHow we work and open roles
  • Contact[email protected]
  • TechnologiesReact Native, MedusaJS, Node.js and the rest
Blog→
Book a free consultation

5.0 on Google · 4.9 on Clutch

Back to blog
Mobile commerce analytics
Published: August 26, 2026
9 min read

How to combine AppsFlyer and Firebase in a commerce app

Responsibility split across attribution, product analytics and backend orders; identifiers, deep links, privacy and QA.

Mikołaj Lehman, CEO & Founder, GMI Software
Mikołaj Lehman
CEO & Founder, GMI Software

In brief

AppsFlyer and Firebase should not report two competing truths. AppsFlyer handles install, campaign and deep-link attribution; Firebase/GA4 handles in-app behaviour; and the backend owns purchases, refunds and order value. Shared identifiers and a documented event contract connect the layers.

AppsFlyer and Firebase should not report two competing truths. AppsFlyer handles install, campaign and deep-link attribution; Firebase/GA4 handles in-app behaviour; and the backend owns purchases, refunds and order value. Shared identifiers and a documented event contract connect the layers.

Responsibility split

AppsFlyer records install, re-attribution, campaign source and deep link. Firebase captures screens, search, cart and checkout. The backend confirms payment, order, refund and final value. This split reduces discrepancies and makes auditing possible.

Identifiers and privacy

Do not send email addresses or personal data as event names or open parameters. Use a pseudonymous customer_id after authentication, transaction_id for the order and campaign_id for campaigns. Consent and ATT must control the relevant SDKs before collecting data that requires permission.

Deep link from ad to product

A link should open the intended product or promotion, retain campaign context and handle the no-app case. After installation, a deferred deep link takes the customer to the correct destination. Campaign, product-open and purchase events need shared identifiers without duplicating when the app returns from the background.

QA and report reconciliation

Before campaign launch, complete a controlled purchase with a known source. Confirm that AppsFlyer shows the campaign, Firebase shows the funnel and the backend has one order with the same value. Do not hide discrepancies with dashboard adjustments; identify the layer that lost or duplicated the event.

Common integration failures

The most common failure is two independent purchase events: one from the app and one from the server, without a shared transaction_id. Other problems include losing campaign context after login, firing the deep link again on foreground, inconsistent currencies and sending a user identifier before consent or authentication.

A second failure class is release mismatch. Marketing launches a campaign before the new app version reaches enough users, so part of the audience cannot emit the new events. Reporting should always support segmentation by app_version and platform.

A safe three-step rollout

Start in a test environment and on internal devices. Then release to a small user share without increasing campaign spend. Scale acquisition only after confirming funnel completeness, no duplicates and revenue reconciliation with the backend.

  1. Debug: one device, one scenario, complete log.
  2. Canary: small user share and controlled order sample.
  3. Scale: monitor discrepancies, errors and app-version share.

Sources

AppsFlyer React Native plugin: https://github.com/AppsFlyerSDK/appsflyer-react-native-plugin

Firebase Analytics: https://firebase.google.com/docs/analytics

Apple ATT: https://developer.apple.com/documentation/apptrackingtransparency

Frequently asked questions

Which system should report purchase?
The order backend should be the source of truth. It can forward the confirmed event to analytics and attribution tools using the same transaction_id.
Does AppsFlyer replace GA4?
No. AppsFlyer focuses on mobile attribution and campaigns; GA4/Firebase focuses on behaviour and product reporting.
How do we avoid duplicate purchase reporting?
Choose one system to emit confirmed purchase, use a shared transaction_id and deduplicate in destinations. The app can report payment start but should not compete with the backend for the final outcome.

Related reading

  • E-commerce mobile app analytics

    Tracking plan, funnels, attribution and product data connected to commerce outcomes.

  • React Native mobile apps

    Build, modernization and growth of commerce apps for iOS and Android.

  • Headless commerce and sales backend

    One source of truth for catalogue, cart, order and payment.

Content updated: August 26, 2026

Mikołaj Lehman, CEO & Founder, GMI Software
Mikołaj Lehman
CEO & Founder, GMI Software

Mikołaj Lehman is the CEO and founder of GMI Software. On the blog, he covers decisions around mobile apps, ecommerce and digital product delivery.

  • Mobile apps and React Native
  • Headless and B2B ecommerce
  • MedusaJS
  • Digital product delivery

Google Preferred Sources

See GMI more often in Google

Add gmi.software as a preferred source. Google may highlight our new articles more often in Top Stories and supported AI experiences.

Share article:

Related articles

Mobile commerce analytics

Mobile commerce analytics tracking plan — events and example

A practical event model from app open to purchase: names, parameters, ownership, server-side purchase and pre-launch validation.

→
Mobile commerce analytics

Best analytics tools for mobile commerce — comparison

GA4 and Firebase, Amplitude, Mixpanel, PostHog, AppsFlyer and Adjust: roles, limitations and example stacks.

→

Let’s discuss your project.

Tell us what you need. We’ll suggest the next step.

[email protected]
gmi.software Sp. z o.o.ul. Jana Heweliusza 11 / 819
80-890 Gdansk, Poland
Rated 5.0 out of 5 on Google5.017 client reviews on Google
TechnologiesReact NativeExpoNext.jsReactTypeScriptMedusaJS3D configuratorsNode.jsNestJSPostgreSQLDockerAWSPlaywrightMaestro
© 2026 gmi.software Sp. z o.o.
Privacy PolicyTerms