Back

How to Track B2B Leads From GA4 to Your CRM

How to Track B2B Leads From GA4 to Your CRM

Insights

Diagram showing how B2B leads are tracked from GA4 to a CRM: form fills send the client ID and UTMs to the CRM, and CRM stage changes are sent back to GA4 as lead events

Proving what marketing earns is still hard. In a Gartner survey of 378 senior marketing leaders, only 52% said they were successful in proving marketing’s value and getting credit for it.

For B2B teams, part of the problem is that the data sits in two places. GA4 knows which channel and campaign brought a visitor to your form. Your CRM knows whether that lead was qualified and whether it became a customer. On their own, neither can tell you which channels produce revenue.

To track B2B leads from GA4 to your CRM, you capture each visitor’s source and GA4 client ID when they submit a form, store them on the CRM record and send CRM stage changes back to GA4 as lead events. GA4 can then report qualified and converted leads by channel, not just form fills. This guide walks through the setup step by step.

Why GA4 Alone Can’t Show Which Leads Become Revenue

GA4 measures what happens on your website, and your CRM records what happens after a lead arrives. B2B deals close weeks or months after the first visit, so the full picture only appears when the two systems share data.

What GA4 sees and what your CRM sees

Each system answers different questions:

Question

GA4

CRM

Which channel and campaign brought the visitor?

Yes

Only if you pass it in

Which pages did they view before converting?

Yes

No

Did they submit a form?

Yes, as an event

Yes, as a new record

Did sales qualify the lead?

Only if you send it back

Yes

Did they become a customer, and for how much?

Only if you send it back

Yes

The gaps are why a channel can look strong in GA4 and still produce few deals. Before you connect anything, agree which website actions count as conversions in the first place.

The shared ID that links the two systems

Google’s guidance on linking online and offline conversions explains that GA4 needs a shared identifier to connect a CRM event to the original website session. There are two options:

  • Client ID: the identifier GA4 stores in the visitor’s browser cookie, which is sent to GA4 automatically.

  • User-ID: an ID you create for signed-in users, which you must send to GA4 yourself.

Most B2B websites have no login, so the client ID is usually the link. Once the CRM holds it, you can send lead events back to GA4 through the Measurement Protocol, a server-to-server connection, or upload them as a file with GA4’s data import.

Keep personal data out of GA4

Google’s rules on personally identifiable information prohibit sending data such as email addresses to Google Analytics. Link the two systems with the client ID or an internal CRM record ID, never with a name or email address.

Some visitors will decline analytics cookies, so some leads will have no client ID to match. Plan for that gap in your reports, and check the consent rules in each market where you collect leads.

How to Track B2B Leads From GA4 to Your CRM, Step by Step

GA4 lead events mapped to CRM stages: generate_lead to new lead, working_lead to contacted, qualify_lead to qualified lead and close_convert_lead to closed won

The setup takes six steps. Do them in order, and test the full journey before you rely on the numbers.

Step 1: Define the lead stages you will track

Google’s recommended events for lead generation cover the full funnel, online and offline. Map each one to a stage in your CRM:

GA4 event

When to send it

Example CRM stage

generate_lead

A visitor submits a form

New lead

working_lead

The lead contacts, or is contacted by, a rep

Contacted

qualify_lead

The lead meets your qualification criteria

Qualified lead

disqualify_lead

The lead is ruled out

Disqualified

close_convert_lead

The lead becomes a customer

Closed won

close_unconvert_lead

The lead is marked as not converting

Closed lost

Use the same rules for qualify_lead that sales uses to define a sales qualified lead. If the definitions differ, GA4 and the CRM will disagree.

Step 2: Capture source details and the client ID on every form

Add hidden fields to each lead form, and fill them automatically when the visitor submits:

  • GA4 client ID: the link back to the visitor’s website session.

  • Campaign details: UTM source, medium and campaign, tagged using consistent UTM naming conventions.

  • Landing page: the first page the visitor saw.

  • Ad click ID: the click identifier from Google Ads or other ad platforms, if you run paid campaigns.

Send the generate_lead event to GA4 at the same moment. If visitors book meetings on a scheduling tool on another domain, set up GA4 cross-domain tracking so the session is not lost on the way.

Step 3: Store the data on the CRM record and carry it to the deal

Create a CRM field for each value, and lock the first-touch fields so later activity cannot overwrite them. When a lead becomes a deal, copy the fields to the company and the deal, so the source survives when a colleague of your contact signs.

Filter out fake form submissions before they reach the CRM, and review the fields regularly as part of a routine check of your CRM data.

Step 4: Send CRM stage changes back to GA4

When a lead moves to a new stage, send the matching event to GA4 with the stored client ID. There are four common ways to do it:

  • Native integration: the simplest route if your CRM offers a GA4 connector. Check which events and fields it supports.

  • Automation platform: a no-code tool that sends an event when a CRM stage changes.

  • Measurement Protocol: a developer sends events from your server straight to GA4. It gives the most control.

  • Data import: you upload a file of stage changes to GA4 on a schedule. It is simple, but not real time.

Whichever you choose, send each event once per lead, and never include names, emails or phone numbers.

Step 5: Mark the events that matter as key events

In GA4, mark qualify_lead and close_convert_lead as key events, and keep generate_lead for tracking lead volume. Key events are what GA4 treats as conversions in its reports. You can also use them to create Google Ads conversions.

Step 6: Test the whole journey before you rely on it

Submit a test lead from a link with UTM tags. Check that the client ID and campaign details land on the CRM record. Then move the record through each stage, and confirm the matching events appear in GA4 with the right source. Delete or exclude the test data afterwards.

How to Use the Joined Data to Judge Channels by Pipeline

Once CRM stages flow into GA4, you can compare channels by the leads they turn into pipeline, not by form fills. Start with one report, feed the best signals to your ad platforms and fix the gaps that appear.

Read the lead acquisition report

GA4’s lead acquisition report fills in once you send the lead events. It shows new, qualified and converted leads by the channel that first brought each visitor.

The most useful number is the qualified rate: qualified leads ÷ new leads, by channel. This illustrative example shows why it matters:

Channel

New leads

Qualified leads

Qualified rate

Paid search

120

18

15%

Organic search

60

15

25%

LinkedIn

40

14

35%

Paid search brings the most leads, but LinkedIn brings almost as many qualified ones from a third of the volume. Add these rates to your marketing reports so they sit next to spend.

Send quality signals back to your ad platforms

Ad platforms optimise for whatever you count as a conversion. Once qualify_lead is a key event, you can use it in your Google Ads conversion tracking so campaigns aim for qualified leads, not every form fill. Apply the same thinking to LinkedIn Ads and any other paid channel.

Qualification happens days or weeks after the click, so give campaigns time to collect enough qualified events before you judge them.

Fix the common problems

Most setups hit at least one of these:

Problem

Likely cause

Fix

Many CRM leads have no client ID

The hidden field is not filling, or the visitor declined cookies

Test every form, and report unmatched leads separately

Leads show the booking tool as their source

The session breaks between domains

Set up cross-domain tracking

The same stage event appears twice

The event fires on every record update

Send each event only when the stage first changes

GA4 and CRM lead counts differ

Spam, test leads or consent gaps

Filter spam, exclude tests and compare trends rather than exact totals

Converted leads arrive weeks after the visit

The normal B2B sales cycle

Report by the month each lead was created

Most deals also involve several touches, so pair this setup with a simple multi-touch attribution view. If you ever change agencies, include this tracking in the handover so it is not lost.

Conclusion

GA4 tells you where leads come from, and your CRM tells you what they become. Linking the two with a shared client ID, and sending CRM stages back as lead events, lets you judge every channel by qualified pipeline instead of form fills.

Start small: track generate_lead and qualify_lead, test the full journey, then add closed deals once the data is reliable. Within a few months you will see which channels deserve more budget.

If you want help setting up lead tracking from GA4 to your CRM, talk to Coresium.

Frequently Asked Questions

Can GA4 track leads after they reach the CRM?

Not on its own. GA4 only records what happens on your website, so you need to send CRM stage changes, such as qualified or closed won, back to GA4 as lead events.

How do you link a GA4 visitor to a CRM record?

Capture the GA4 client ID in a hidden form field and store it on the CRM record. When the lead changes stage, send the event to GA4 with that client ID, so GA4 can match it to the original website session.

Which GA4 events should B2B companies use for leads?

Google recommends generate_lead, working_lead, qualify_lead, disqualify_lead, close_convert_lead and close_unconvert_lead for lead generation. Most B2B teams start with generate_lead and qualify_lead, then add close_convert_lead.

Can you send email addresses from the CRM to GA4?

No. Google prohibits sending personally identifiable information, such as email addresses, to Google Analytics. Link the systems with the GA4 client ID or an internal record ID instead.

Why don’t GA4 and CRM lead numbers match?

The two systems count differently. Spam, test submissions, visitors who decline cookies and broken cross-domain tracking all create gaps, so compare trends between them rather than exact totals.

A close-up of a banknote featuring a portrait and a blank space for denominations or signatures.

Stop funding marketing that doesn’t pay back.

Stop funding marketing that doesn’t pay back.

We find the leak, fix the system, and track ROI weekly so growth becomes predictable.

We find the leak, fix the system, and track ROI weekly so growth becomes predictable.

A blank banknote background featuring a stylized portrait of Benjamin Franklin at the top.

Stop funding marketing that doesn’t pay back.

We find the leak, fix the system, and track ROI weekly so growth becomes predictable.