Skip to main content
Bricks → GA4Integration guide

Connecting Bricks Builder to GA4

Bricks generates lean markup and is popular with developers, which means the sites built on it are usually fast and the tracking is usually hand-written rather than plugin-driven. 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 Bricks form submission 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

Bricks Builder forms in GA4: one generate_lead per submission

Fire one GA4 generate_lead from the Bricks form's confirmed success response, not the submit click, and give CRM-qualified leads a different event name. Write client_id and session_id into hidden fields for server-side Measurement Protocol sends; late qualifications report on the send date. Audit Bricks custom code and GTM first, because duplicate tags double every lead.

Bricks forms submit over AJAX, so unless the form action is set to redirect, there is no thank-you page load for GA4 to see. On hand-built Bricks sites the usual state is a listener someone wrote against the submit button click, which also fires when validation fails. The GA4 event you want is generate_lead, fired once from the form's confirmed success response, and if a qualified lead is later sent from the CRM it needs a different event name so the two are never summed in a key-event report.

For a server-side send, write the visitor's client_id from the _ga cookie, and the current session_id from the property's _ga_ cookie, into hidden fields on the Bricks form so the CRM record carries both. Measurement Protocol will accept an event weeks after the visit, but GA4 only lets you backdate timestamp_micros by about 72 hours, so a lead qualified a month later is reported on the day it was qualified. Read that report as a lagged count by source, not as session behavior.

The break specific to this pair: GA4 does not deduplicate, and Bricks sites often carry a gtag snippet pasted into the Bricks custom code settings plus a GTM container added later by someone else. Two tags means two generate_lead events per submission. Search the site-wide and page-level custom code fields and write down what is there before adding anything.

Bricks → GA4 · what breaks

Why this join usually fails — Bricks → GA4

  1. 01

    The GA4 client_id never reaches Bricks

    Custom implementations vary per site, and forms submit over AJAX by default.

  2. 02

    Undocumented custom tracking

    A lean hand-built implementation is usually correct and almost never written down. The next person to touch the site either duplicates it or breaks it, and both failures are silent.

  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.

Bricks → GA4 · the fix

What working looks like — Bricks → GA4

  • The GA4 client_id on every submission

  • 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

    Bricks Builder's own records are the reference, not either dashboard.

Bricks → GA4 · architecture

How Bricks and GA4 actually connect

  1. 1

    Bricks Builder holds the truth

    Developer-built sites tend to have deliberate, minimal tracking. That is an advantage until the developer leaves and nobody knows what was implemented or where.

  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 Bricks form submission.

  4. 4

    The event source decides reliability

    Send qualified outcomes per form, with the implementation documented.

  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.

Bricks → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_id present on the submission

    Visible on the record itself in Bricks Builder, not merely captured somewhere on the site.

  • Sent from your CRM 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 Bricks Builder's records agree within a few percent over a closed window.

Actually broken

  • The GA4 client_id missing on most records

    Custom implementations vary per site, and forms submit over AJAX by default.

  • Sent from the browser

    A lean hand-built implementation is usually correct and almost never written down. The next person to touch the site either duplicates it or breaks it, and both failures are silent.

  • 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 Bricks Builder.

Bricks → GA4 · diagnose

Diagnostic order — Bricks → GA4

  1. 01

    Count submissions carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Document the existing implementation before modifying it

    On developer-built sites this is the step that prevents the most damage.

  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.

Bricks → GA4 · prove

How it gets proven — Bricks → GA4

Against Bricks Builder's own records, not against either platform's dashboard.

Source of truth

Your CRM record, joined to the submission.

  • The GA4 client_id confirmed present on a live submission.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Qualified outcomes reconciled per form against imported conversions, with the implementation documented.

Bricks → GA4 · free audit

What we check in the free audit

  • Count submissions carrying the GA4 client_id
  • Follow one real conversion end to end
  • Document the existing implementation before modifying it
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Your CRM record, joined to the submission.

Get my free conversion tracking audit

Free30 minutesNo obligation

Bricks → GA4 · when not to buy

When you don't need this — Bricks → GA4

  • If GA4 already reports conversions that reconcile against Bricks Builder'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 submissions and count how many carry the GA4 client_id.
  • If the original developer is available, an hour of their time is worth more than a week of reverse engineering.
  • 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.

Bricks → GA4 · what we deliver

What gets built — Bricks → GA4

  • Identifier capture into Bricks

    Document what exists before changing anything, then bind to the form submission event and pass the identifier through a hidden field.

  • Event source: your CRM record

    Send qualified outcomes per form, with the implementation documented.

  • 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

    Disqualified submissions reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your CRM record, joined to the submission.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Bricks → GA4 questions, answered

Usually two senders: a gtag snippet in Bricks' custom code area and a GTM tag, both firing generate_lead. GA4 will not merge them, so remove one.

Free · 30 min

Get Bricks and GA4 joined properly

Free30 minutesNo obligation