Skip to main content
Capsule → GA4Integration guide

Connecting Capsule CRM to GA4

Capsule is a deliberately simple CRM for small businesses, which means fewer places for the identifier to hide and fewer features to work with. 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 Capsule opportunity 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

Capsule won opportunities in GA4 with the original client_id

Add a client_id custom field to the Capsule party, fill it from the _ga cookie when your form posts to the Capsule API, and copy it onto the opportunity. At the won milestone, send close_convert_lead through Measurement Protocol with the opportunity value; it lands on the send date. Skip hand-typed parties, and keep a sent flag for reopened deals.

A Capsule opportunity is won days or weeks after the visit, which runs into a GA4 limit: Measurement Protocol only accepts a timestamp_micros up to 72 hours in the past. The win cannot be backdated to the visit; it lands on the day you send it. Whether it is credited to the source that brought the party in depends on the client_id you send and on your property's attribution settings, so check how a late test event attributes before trusting the report.

That makes the client_id the custom field that matters. Add one to the Capsule party, fill it from the _ga cookie when your web form posts to the Capsule API, and copy it onto the opportunity when it is created. When the won milestone fires, send close_convert_lead with the opportunity value and that client_id. Parties typed in by hand will have an empty field; send nothing to GA4 for them rather than a new random client_id, which would file the win under direct.

Send generate_lead from the browser at form submit and close_convert_lead from the server at the win, and never the same event from both. Capsule lets a won opportunity be reopened and won again; keep a sent flag on the opportunity so GA4 does not receive a second close_convert_lead for the same deal.

Capsule → GA4 · what breaks

Why this join usually fails — Capsule → GA4

  1. 01

    The GA4 client_id never reaches Capsule

    Custom fields exist on parties and opportunities but must be populated deliberately, and Capsule's web-form capture is basic enough that many small businesses enter records by hand.

  2. 02

    Manual record entry

    At Capsule's typical business size, records are frequently created by a person retyping details from an email. Nothing typed by hand carries a click identifier.

  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.

Capsule → GA4 · the fix

What working looks like — Capsule → GA4

  • The GA4 client_id on every opportunity

  • 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

    Capsule CRM's own records are the reference, not either dashboard.

Capsule → GA4 · architecture

How Capsule and GA4 actually connect

  1. 1

    Capsule CRM holds the truth

    Capsule's simplicity is an advantage here — one party record, one opportunity, and a clear won state. There is less to get wrong than in an enterprise CRM.

  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 Capsule opportunity.

  4. 4

    The event source decides reliability

    Fire on the won milestone with the opportunity value.

  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.

Capsule → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_id present on the opportunity

    Visible on the record itself in Capsule CRM, not merely captured somewhere on the site.

  • Sent from a Capsule webhook on opportunity milestone 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

    GA4's count and Capsule CRM's records agree within a few percent over a closed window.

Actually broken

  • The GA4 client_id missing on most records

    Custom fields exist on parties and opportunities but must be populated deliberately, and Capsule's web-form capture is basic enough that many small businesses enter records by hand.

  • Sent from the browser

    At Capsule's typical business size, records are frequently created by a person retyping details from an email. Nothing typed by hand carries a click identifier.

  • 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 Capsule CRM.

Capsule → GA4 · diagnose

Diagnostic order — Capsule → GA4

  1. 01

    Count opportunitys carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check what share of parties were created via the API rather than manually

    Manual creation is the coverage ceiling and it is an operational fix, not a technical 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.

Capsule → GA4 · prove

How it gets proven — Capsule → GA4

Against Capsule CRM's own records, not against either platform's dashboard.

Source of truth

Capsule opportunities marked won by close date, at their values.

  • The GA4 client_id confirmed present on a live opportunity.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • A web-form-originated party confirmed to carry the identifier onto its opportunity.

Capsule → GA4 · free audit

What we check in the free audit

  • Count opportunitys carrying the GA4 client_id
  • Follow one real conversion end to end
  • Check what share of parties were created via the API rather than manually
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Capsule opportunities marked won by close date, at their values.

Get my free conversion tracking audit

Free30 minutesNo obligation

Capsule → GA4 · when not to buy

When you don't need this — Capsule → GA4

  • If GA4 already reports conversions that reconcile against Capsule CRM'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 opportunitys and count how many carry the GA4 client_id.
  • This is a small build. If you have a developer, the API work is an afternoon and we would say so.
  • 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.

Capsule → GA4 · what we deliver

What gets built — Capsule → GA4

  • Identifier capture into Capsule

    Add a custom field to the party, populate it from the web form via the API, and carry it onto the opportunity when created.

  • Event source: a Capsule webhook on opportunity milestone change

    Fire on the won milestone with the opportunity value.

  • 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

    Opportunities reopened should not double-count when they win again.

Written guarantee

95%+ tracking accuracy

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

Get my free conversion tracking audit

From $400 · See packages

FAQ

Capsule → GA4 questions, answered

Only by up to 72 hours through Measurement Protocol. A win from three weeks after the visit arrives on the day it is sent, so the attribution depends on the stored client_id, not the date.

Free · 30 min

Get Capsule and GA4 joined properly

Free30 minutesNo obligation