Skip to main content
Supabase Auth → AppsFlyerIntegration guide

Connecting Supabase Auth to AppsFlyer

Supabase Auth sits directly on your own Postgres database, which means the identity and the revenue can be joined with a query rather than through an integration. 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 Supabase user 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

Supabase Auth to AppsFlyer: link the device to the auth user

At mobile login, set AppsFlyer's customer user ID to the Supabase auth UUID and save the appsflyer_id on the profiles row, as a list for multiple devices. Web checkout purchases the SDK never sees can then be sent through the S2S events API with revenue. Don't resend SDK-reported in-app purchases without a shared event identifier.

AppsFlyer attributes to a device; Supabase Auth knows the person. The join is two IDs set at login in the mobile app: call AppsFlyer's set customer user ID with the Supabase auth user UUID, and save the appsflyer_id onto that user's row in your profiles table. After that, your backend can send server-to-server events about a user without the app being open.

That matters most for payments that happen outside the app. If a user signs up in the app but subscribes on your website through a web checkout, the purchase never touches the SDK; a query joining auth users to the billing table finds it, and the S2S events API sends it with the stored appsflyer_id and revenue. If the purchase is an in-app purchase the SDK already reports, do not also send it from the server unless both use the same event identifier, or every ad network AppsFlyer forwards to sees double revenue.

A user who logs in on two phones has two appsflyer_ids. Store them as a list, not a single column that the second login overwrites, and decide which device a web purchase should attribute to; usually the earliest install, since that is the one an ad drove. Cancellations reverse against the same user row.

Supabase Auth → AppsFlyer · what breaks

Why this join usually fails — Supabase Auth → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches Supabase Auth

    OAuth flows redirect off-site and back, which can lose an identifier captured before login.

  2. 02

    Building a pipeline for a join you could write in SQL

    Teams reach for a CDP or an event pipeline to connect identity to revenue when both tables sit in the same database. The simplest correct answer is usually a scheduled query.

  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.

Supabase Auth → AppsFlyer · the fix

What working looks like — Supabase Auth → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every account

  • 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

Supabase Auth → AppsFlyer · architecture

How Supabase Auth and AppsFlyer actually connect

  1. 1

    Supabase Auth holds the truth

    Because everything is in one Postgres instance, the join that most products build a pipeline for is a SQL statement here. That is a genuine advantage and it is frequently unused.

  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 Supabase user.

  4. 4

    The event source decides reliability

    Send paid conversions from a query joining auth users to billing.

  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.

Supabase Auth → AppsFlyer · normal or broken

Working vs. broken, side by side — Supabase Auth → AppsFlyer

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the account

  • Sent from your own database

  • 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

    OAuth flows redirect off-site and back, which can lose an identifier captured before login.

  • Sent from the browser

    Teams reach for a CDP or an event pipeline to connect identity to revenue when both tables sit in the same database. The simplest correct answer is usually a scheduled query.

  • 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

Supabase Auth → AppsFlyer · diagnose

Diagnostic order — Supabase Auth → AppsFlyer

  1. 01

    Count accounts carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether identity and billing are in the same database

    If they are, most of the usual integration complexity is unnecessary.

  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.

Supabase Auth → AppsFlyer · prove

How it gets proven — Supabase Auth → AppsFlyer

Source of truth

Your own database, joining the auth user to the subscription or order table.

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live account.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • Paid conversions reconciled by query against imported conversions, with identifier survival verified across OAuth.

Supabase Auth → AppsFlyer · free audit

What we check in the free audit

  • Count accounts carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Check whether identity and billing are in the same database
  • Check what share of your revenue happens in the app at all
  • Read the match rate, not the success message

Checked against

Your own database, joining the auth user to the subscription or order table.

Get my free conversion tracking audit

Free30 minutesNo obligation

Supabase Auth → AppsFlyer · when not to buy

When you don't need this — Supabase Auth → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If billing lives in a separate system, the join is a real integration again and the advantage disappears.
  • 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.

Supabase Auth → AppsFlyer · what we deliver

What gets built — Supabase Auth → AppsFlyer

  • Identifier capture into Supabase Auth

    Persist the identifier before the OAuth redirect and write it onto the user row at first login, where it is then permanently queryable.

  • Event source: your own database

    Send paid conversions from a query joining auth users to billing.

  • 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

    Cancellations reverse against the same user row.

Written guarantee

95%+ tracking accuracy

Measured against Your own database, joining the auth user to the subscription or order table.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Supabase Auth → AppsFlyer questions, answered

At login, set AppsFlyer's customer user ID to the Supabase user UUID and store the appsflyer_id on the user's row so the server can send events later.

Free · 30 min

Get Supabase Auth and AppsFlyer joined properly

Free30 minutesNo obligation