Skip to main content
Supabase Auth → Customer.ioIntegration guide

Connecting Supabase Auth to Customer.io

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. Customer.io triggers messages from behaviour, which means an event you send is not recorded — it is acted on, usually within seconds, by sending something to a real person. The join between them succeeds or fails on one thing: whether the person identifier you assign reaches the Supabase user before the conversion happens, because Customer.io can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Supabase Auth to Customer.io: identify after email confirmation

Use the Supabase auth user UUID as the Customer.io person ID, with email as an attribute, so email changes don't create duplicate people. Gate email campaigns on a confirmed attribute set when the confirmation timestamp fills. Send trial, payment and cancellation events from a query joining auth.users to billing through the Track API, checking template fields aren't empty.

Customer.io sends a message the moment a qualifying event lands, so the identifier and the timing both have to be right. Use the Supabase auth user UUID as the Customer.io person ID and email as an attribute, rather than email as the ID. Supabase has an email change flow, and with email as the identifier, a user who updates their address becomes a second person with a second copy of every campaign.

Sign-up is the delicate moment. With confirmation on, Supabase creates the auth user before the address is verified. Identifying the person in Customer.io at that point puts a possibly mistyped or fake address into campaigns. Identify on sign-up if you want the data, but gate email campaigns on a confirmed attribute you set when the confirmation timestamp is filled in.

Billing events come from a query or trigger joining auth.users to your billing table: trial started, first payment, cancelled, sent to the Track API with the attributes your templates use, such as plan name and next renewal date. An event with a missing plan name still triggers the campaign, so check the join returns every field before sending. Cancellations arrive against the same person ID, which lets a win-back campaign start without guessing who left.

Supabase Auth → Customer.io · what breaks

Why this join usually fails — Supabase Auth → Customer.io

  1. 01

    The person identifier you assign 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

    A test event sending a real email

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  4. 04

    Nothing reconciles afterwards

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

Supabase Auth → Customer.io · the fix

What working looks like — Supabase Auth → Customer.io

  • The person identifier you assign on every account

  • Conversions arriving in Customer.io

    The event lands on the person, evaluates against every campaign trigger and segment condition, and may send immediately.

  • Reconciled against the source

Supabase Auth → Customer.io · architecture

How Supabase Auth and Customer.io 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

    Customer.io needs a click to match

    Customer.io needs the person identifier, the event name and any attributes the campaign conditions reference. An event whose attributes are missing will still trigger a campaign, which may then send a message with an empty placeholder in it.

  3. 3

    The identifier is the bridge

    The person identifier you assign, 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

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

Supabase Auth → Customer.io · normal or broken

Working vs. broken, side by side — Supabase Auth → Customer.io

Normal, not a fault

  • The person identifier you assign present on the account

  • Sent from your own database

  • Deduplicated correctly

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

  • Reconciles with the source

Actually broken

  • The person identifier you assign 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

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  • Nobody has reconciled it

Supabase Auth → Customer.io · diagnose

Diagnostic order — Supabase Auth → Customer.io

  1. 01

    Count accounts carrying the person identifier you assign

  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

    Confirm which workspace you are writing to before sending anything

    Environment separation is the whole safety mechanism in behaviour-triggered tools, and it is the thing most often skipped.

  5. 05

    Read the match rate, not the success message

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

Supabase Auth → Customer.io · prove

How it gets proven — Supabase Auth → Customer.io

Source of truth

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

  • The person identifier you assign confirmed present on a live account.
  • Events confirmed on person profiles with the triggered campaign activity verified, in a test workspace before production.
  • Paid conversions reconciled by query against imported conversions, with identifier survival verified across OAuth.

Supabase Auth → Customer.io · free audit

What we check in the free audit

  • Count accounts carrying the person identifier you assign
  • Follow one real conversion end to end
  • Check whether identity and billing are in the same database
  • Confirm which workspace you are writing to before sending anything
  • 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 → Customer.io · when not to buy

When you don't need this — Supabase Auth → Customer.io

  • Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the person identifier you assign.
  • If billing lives in a separate system, the join is a real integration again and the advantage disappears.
  • If your messaging is scheduled rather than behavioural, a simpler email platform does the job and removes the whole class of accidental-send risk.

Supabase Auth → Customer.io · what we deliver

What gets built — Supabase Auth → Customer.io

  • 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 Customer.io

    The Customer.io Track API, posted server-side from your order or product system with the person identifier and event attributes.

  • 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 → Customer.io questions, answered

The Supabase auth UUID. Email can change through Supabase's email change flow, which would create a duplicate person.

Free · 30 min

Get Supabase Auth and Customer.io joined properly

Free30 minutesNo obligation