Skip to main content
Freshsales → GA4Integration guide

Connecting Freshsales to GA4

Freshsales is Freshworks' CRM, usually bought alongside their support and marketing products, which means contact records arrive from several directions. 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 Freshsales deal 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

Freshsales won deals in GA4, tied to the original web session

Capture GA4 client_id and session_id in hidden fields on the web form so they land on the Freshsales contact, then copy them to the deal. Send generate_lead through Measurement Protocol when a web contact is created and purchase on won, with the deal ID as transaction_id. Skip Freshdesk-created contacts, keep MQL and SQL non-key, and refund lost deals.

GA4 needs the client_id, and in a Freshworks stack the place to catch it is the web form that creates the Freshsales contact. Add hidden fields for client_id and session_id, fill them from the _ga cookie on submit, and copy them from contact to deal in the same workflow that copies the click IDs. Contacts created from a Freshdesk ticket will have them empty; leave those out rather than letting them land in GA4 as (direct).

Send two events through Measurement Protocol: generate_lead when a web-originated contact is created, and purchase when the deal moves to won, with the deal ID as transaction_id and the deal value. Freshsales deals often close weeks later, well past Measurement Protocol's short backdating limit, so the won event posts on its close date, which is what you want for revenue-by-source reporting anyway.

Freshsales lifecycle stages tempt teams to send MQL and SQL to GA4 as key events too. Keep them as plain events if you send them at all; key events can be imported into Google Ads, and then a score threshold starts acting as a conversion. If a deal is reopened and later lost, send a refund event with the same transaction_id so GA4 revenue comes back down rather than overstating the quarter.

Freshsales → GA4 · what breaks

Why this join usually fails — Freshsales → GA4

  1. 01

    The GA4 client_id never reaches Freshsales

    Contacts can originate in Freshdesk, in Freshmarketer, or in Freshsales itself, and a custom field populated on one path is empty on the others. Support-originated contacts in particular carry no marketing context at all.

  2. 02

    Contacts arriving from the support product

    In a Freshworks stack, existing customers raising tickets create contacts that look identical to new leads. Counting them credits acquisition for your own support volume.

  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.

Freshsales → GA4 · the fix

What working looks like — Freshsales → GA4

  • The GA4 client_id on every deal

  • 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

Freshsales → GA4 · architecture

How Freshsales and GA4 actually connect

  1. 1

    Freshsales holds the truth

    Freshsales runs its own lead scoring and contact lifecycle stages, which are useful internally and are not conversion events. Only the deal is money.

  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 Freshsales deal.

  4. 4

    The event source decides reliability

    Fire on the transition to won, carrying the deal value. Not on lead score thresholds, which are an internal signal.

  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.

Freshsales → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_id present on the deal

  • Sent from a Freshsales workflow webhook on deal stage change

  • 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

    Contacts can originate in Freshdesk, in Freshmarketer, or in Freshsales itself, and a custom field populated on one path is empty on the others. Support-originated contacts in particular carry no marketing context at all.

  • Sent from the browser

    In a Freshworks stack, existing customers raising tickets create contacts that look identical to new leads. Counting them credits acquisition for your own support volume.

  • 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

Freshsales → GA4 · diagnose

Diagnostic order — Freshsales → GA4

  1. 01

    Count deals carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check what share of deals originated from support rather than marketing

    Only marketing-originated deals should reach an ad platform.

  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.

Freshsales → GA4 · prove

How it gets proven — Freshsales → GA4

Source of truth

Freshsales deals marked won by close date, at their deal values.

  • The GA4 client_id confirmed present on a live deal.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • A deal confirmed to carry the identifier from the original web enquiry rather than from a support ticket.

Freshsales → GA4 · free audit

What we check in the free audit

  • Count deals carrying the GA4 client_id
  • Follow one real conversion end to end
  • Check what share of deals originated from support rather than marketing
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Freshsales deals marked won by close date, at their deal values.

Get my free conversion tracking audit

Free30 minutesNo obligation

Freshsales → GA4 · when not to buy

When you don't need this — Freshsales → GA4

  • Measure identifier coverage yourself first — pull your last hundred deals and count how many carry the GA4 client_id.
  • If most of your deals come from existing customers via support, paid attribution has very little to reach.
  • 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.

Freshsales → GA4 · what we deliver

What gets built — Freshsales → GA4

  • Identifier capture into Freshsales

    Create the custom field on both contact and deal, populate it at contact creation from the web form, and copy it onto the deal via workflow.

  • Event source: a Freshsales workflow webhook on deal stage change

    Fire on the transition to won, carrying the deal value. Not on lead score thresholds, which are an internal signal.

  • 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

    Deals reopened and later lost should not leave a conversion standing.

Written guarantee

95%+ tracking accuracy

Measured against Freshsales deals marked won by close date, at their deal values.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Freshsales → GA4 questions, answered

Store the GA4 client_id on the contact from the web form, copy it onto the deal by workflow, and fire a webhook on the won stage that posts a purchase event through Measurement Protocol. Use the deal ID as transaction_id.

Free · 30 min

Get Freshsales and GA4 joined properly

Free30 minutesNo obligation