Skip to main content
EDD → GA4Integration guide

Connecting Easy Digital Downloads to GA4

Easy Digital Downloads sells digital products with near-zero marginal cost, which makes refund rate and licence renewal the two variables that decide whether a campaign was worth running. 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 EDD payment 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

EDD to GA4: purchase, refund and renewal as three events

Fire the GA4 purchase from the server when Easy Digital Downloads completes the payment, with the client_id saved from the _ga cookie at checkout and the EDD order number as transaction_id. Send refunds with the same transaction_id so they net out. Send Software Licensing renewals as a custom renewal event and $0 free downloads as generate_lead or not at all.

GA4 is the one destination that takes an EDD refund cleanly: a refund event with the same transaction_id as the original purchase reduces revenue in GA4's ecommerce reports. Use the EDD order number as transaction_id on the purchase and the refund, and refunds issued weeks later still net out. Partial refunds work if you send the refunded items and value.

Fire purchase from the server when EDD marks the payment complete (the edd_complete_purchase action), with the client_id read from the _ga cookie at checkout and saved to the order. That matters most for PayPal Standard, which sends the buyer to PayPal and back; buyers who never return to the receipt page still count, and the browser receipt page should not also send purchase. Measurement Protocol only accepts timestamps up to 72 hours old, so send at completion rather than in a nightly batch.

Software Licensing renewals should not be purchase events. Send them as a custom renewal event with the stored client_id, which keeps the original source on the user while ecommerce acquisition reports stay clean. Free downloads that run through checkout create $0 orders; send those as generate_lead or skip them, because a $0 purchase inflates transaction counts and drags down average order value.

EDD → GA4 · what breaks

Why this join usually fails — EDD → GA4

  1. 01

    The GA4 client_id never reaches EDD

    Checkout is on your own site, which helps, but licence renewals arrive automatically a year later.

  2. 02

    Refund rate ignored on a high-margin product

    Digital products refund at rates well above physical goods on some categories. Reporting gross sales without reversals overstates a campaign by exactly that rate, and the rate differs by traffic source.

  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.

EDD → GA4 · the fix

What working looks like — EDD → GA4

  • The GA4 client_id on every purchase

  • 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

    Easy Digital Downloads's own records are the reference, not either dashboard.

EDD → GA4 · architecture

How EDD and GA4 actually connect — EDD → GA4

  1. 1

    Easy Digital Downloads holds the truth

    Software and digital product sales carry high margin and high refund rates. The gross figure and the kept figure diverge more here than in physical goods.

  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 EDD payment.

  4. 4

    The event source decides reliability

    Send completed new purchases at value; renewals report as retained revenue.

  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.

EDD → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_id present on the purchase

    Visible on the record itself in Easy Digital Downloads, not merely captured somewhere on the site.

  • Sent from the EDD payment record

  • 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

    GA4's count and Easy Digital Downloads's records agree within a few percent over a closed window.

Actually broken

  • The GA4 client_id missing on most records

    Checkout is on your own site, which helps, but licence renewals arrive automatically a year later.

  • Sent from the browser

    Digital products refund at rates well above physical goods on some categories. Reporting gross sales without reversals overstates a campaign by exactly that rate, and the rate differs by traffic source.

  • 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

    The dashboard shows a number and no one has compared it to Easy Digital Downloads.

EDD → GA4 · diagnose

Diagnostic order — EDD → GA4

  1. 01

    Count purchases carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Measure refund rate by campaign

    It varies more than most sellers expect, and it is the difference between a profitable channel and a break-even one.

  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.

EDD → GA4 · prove

How it gets proven — EDD → GA4

Against Easy Digital Downloads's own records, not against either platform's dashboard.

Source of truth

EDD completed payments by date, split into new purchases and licence renewals.

  • The GA4 client_id confirmed present on a live purchase.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Net completed payments reconciled after the refund window against imported conversions.

EDD → GA4 · free audit

What we check in the free audit

  • Count purchases carrying the GA4 client_id
  • Follow one real conversion end to end
  • Measure refund rate by campaign
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

EDD completed payments by date, split into new purchases and licence renewals.

Get my free conversion tracking audit

Free30 minutesNo obligation

EDD → GA4 · when not to buy

When you don't need this — EDD → GA4

  • If GA4 already reports conversions that reconcile against Easy Digital Downloads's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred purchases and count how many carry the GA4 client_id.
  • If your refund rate is very low and uniform, gross reporting is close enough.
  • 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.

EDD → GA4 · what we deliver

What gets built — EDD → GA4

  • Identifier capture into EDD

    Capture on landing and store on the customer so renewals resolve to the original acquisition without being counted as new.

  • Event source: the EDD payment record

    Send completed new purchases at value; renewals report as retained revenue.

  • 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, and on digital products the refund window is a real cost.

Written guarantee

95%+ tracking accuracy

Measured against EDD completed payments by date, split into new purchases and licence renewals.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

EDD → GA4 questions, answered

Send a refund event with the same transaction_id used for the purchase, usually the EDD order number. GA4 subtracts it from purchase revenue in ecommerce reports.

Free · 30 min

Get EDD and GA4 joined properly

Free30 minutesNo obligation