Skip to main content
Resend → GA4Integration guide

Connecting Resend to GA4

Resend is modern developer email where templates live in your codebase, which makes sends easy to ship and equally easy to ship without anyone measuring them. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the Resend message before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Resend emails in GA4: tag the links, version the template

GA4 credits a Resend email only through UTM-tagged links. Add utm_source, utm_medium=email and a utm_campaign naming the email type in the template link helper, with the template version in utm_content. Never send opens to GA4. Send purchases from your order system via Measurement Protocol with the stored client_id, plus the last template version as a custom dimension.

GA4 can only credit a Resend email when the visitor clicks a link that carries UTM parameters. Templates live in your codebase, so add utm_source, utm_medium=email and a utm_campaign naming the email type in the template's link helper, not by hand per link. Put the template version in utm_content: then a deploy that changes the email shows up in GA4 as a new utm_content value and you can compare versions side by side.

If Resend click tracking is on, links are rewritten through a tracking redirect before reaching your site. The UTMs survive, but test one in production, because a link that was already encoded or had a fragment is where redirects tend to drop parameters. Do not send Resend opens into GA4 as events; Apple Mail's privacy protection triggers opens without a human reading the email, and they would inflate any engagement metric you build.

Orders still go to GA4 from your order system as purchase via Measurement Protocol, with the client_id stored at checkout. Add the template version of the most recent email sent to that customer as an event parameter registered as a custom dimension, which lets you see revenue by template version even for buyers who did not click the email and returned directly.

Resend → GA4 · what breaks

Why this join usually fails — Resend → GA4

  1. 01

    The GA4 client_id never reaches Resend

    No session, and the send is triggered by application logic that changes on the normal deploy cadence.

  2. 02

    Email changes shipping invisibly with deploys

    When templates are code, they change without a campaign calendar entry. A conversion rate shift gets attributed to media, creative or seasonality, and the actual cause was a reworded subject line in last Tuesday's release.

  3. 03

    Everything lands under (direct)/(none)

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  4. 04

    Nothing reconciles afterwards

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

Resend → GA4 · the fix

What working looks like — Resend → GA4

  • The GA4 client_id on every message

  • Conversions arriving in GA4

    Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.

  • Reconciled against the source

Resend → GA4 · architecture

How Resend and GA4 actually connect

  1. 1

    Resend holds the truth

    Templates in code means email changes ride along with deploys. A revenue change the week of a release may be the email, and nothing in the marketing stack will show that.

  2. 2

    GA4 needs a click to match

    GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.

  3. 3

    The identifier is the bridge

    The GA4 client_id, captured at the visit and carried into the Resend message.

  4. 4

    The event source decides reliability

    Send orders, with the email template version attached where a send preceded the purchase.

  5. 5

    Deduplication at the destination

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

Resend → GA4 · normal or broken

Working vs. broken, side by side — Resend → GA4

Normal, not a fault

  • The GA4 client_id present on the message

  • Sent from your order system

  • Deduplicated correctly

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

  • Reconciles with the source

Actually broken

  • The GA4 client_id missing on most records

    No session, and the send is triggered by application logic that changes on the normal deploy cadence.

  • Sent from the browser

    When templates are code, they change without a campaign calendar entry. A conversion rate shift gets attributed to media, creative or seasonality, and the actual cause was a reworded subject line in last Tuesday's release.

  • Counted twice, or not at all

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  • Nobody has reconciled it

Resend → GA4 · diagnose

Diagnostic order — Resend → GA4

  1. 01

    Count messages carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check the deploy log before diagnosing an unexplained conversion change

    Cheap to check and it explains a genuine share of otherwise mysterious movements.

  4. 04

    Check whether server events carry a session and a source

    In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.

  5. 05

    Read the match rate, not the success message

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

Resend → GA4 · prove

How it gets proven — Resend → GA4

Source of truth

Your order or application record, joined to the send.

  • The GA4 client_id confirmed present on a live message.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Orders reconciled against imported conversions, with template versions recorded in the timeline.

Resend → GA4 · free audit

What we check in the free audit

  • Count messages carrying the GA4 client_id
  • Follow one real conversion end to end
  • Check the deploy log before diagnosing an unexplained conversion change
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Your order or application record, joined to the send.

Get my free conversion tracking audit

Free30 minutesNo obligation

Resend → GA4 · when not to buy

When you don't need this — Resend → GA4

  • Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the GA4 client_id.
  • If your emails rarely change, the versioning discipline costs more than it returns.
  • GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.

Resend → GA4 · what we deliver

What gets built — Resend → GA4

  • Identifier capture into Resend

    Record the template version on the message so an email change is visible in the timeline alongside campaign changes.

  • Event source: your order system

    Send orders, with the email template version attached where a send preceded the purchase.

  • Dispatch to GA4

    Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.

  • Reversals where they exist

    Refunds reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your order or application record, joined to the send.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Resend → GA4 questions, answered

Add UTM parameters in your template code, with utm_medium=email and the template version in utm_content. GA4 then attributes the session to the email and you can compare template versions.

Free · 30 min

Get Resend and GA4 joined properly

Free30 minutesNo obligation