Data & Tracking
How to Set Up Google Analytics 4 for B2B (step-by-step)
Copy for AI
GA4 setup for B2B means measuring leads and pipeline, not visitors.
In short, you:
- create a property with a web data stream
- define your important actions as key events
- build audiences around those events
- link GA4 to Google Ads, so you bid on real leads
The verdict: the default Google Analytics 4 setup counts visitors. In B2B you count leads and pipeline, so the events you define and how you handle the long sales cycle decide everything.
Below are six steps, each with the how, an example and the mistake most teams make.
For the context behind the numbers, our conversion funnel in Google Analytics is a good addition.
What you need before you start
Before you set GA4 up meaningfully for B2B, make sure three things are ready:
- Access to your website and tag management. Ideally via Google Tag Manager, so you can add events without deploying code every time.
- A list of your valuable actions. Which steps on your site mean “this is a potential customer”? Think contact form, demo request, quote request, whitepaper download, newsletter signup.
- A CRM where a lead can be followed. GA4 stops at the click and the conversion on your site. The deal itself lives in your CRM (HubSpot, Pipedrive, Salesforce). You’ll tie those two together later.
No tag manager yet? Start anyway.
A rough setup that measures your most important forms is infinitely better than a perfect plan that never ships.
New to GA4?
Our explainer on what GA4 is covers the event model in plain words.
Come back here once events and parameters make sense.
The six steps at a glance
The setup runs in six steps, each building on the previous one.
It goes from the bare property to a clean channel report that optimizes on leads instead of visitors:
Step 1: Create your property and web data stream
The property is the container; the data stream is the pipe from your site into it.
How: In GA4, go to Admin and create a new property under your account. Choose Belgium (or the Netherlands) as the time zone and euro as the currency.
Add the web data stream
Then add a web data stream for your domain.
You get a measurement ID (starting with G-).
Place the Google tag via Google Tag Manager on every page.
Check in the Realtime report that your own visit is coming in.
Check it in Realtime
Example: You create the property “Company Ltd, main site” and the data stream “www.company.be”. Within a minute you see your own session appear in Realtime.
That’s your proof the foundation is in place.
Keep test and live traffic apart
Common mistake: Dumping multiple data streams (web plus subdomains plus a test environment) into the same property without thinking. Your test traffic and your live traffic then run together.
Keep test and production separate, and exclude your own office IP via an internal traffic filter.
Our experience: some AI agents also get tracked as user traffic in GA4. Exclude them properly, or they quietly inflate your sessions.
Step 2: Define your key events and mark conversions
Here’s where B2B is truly different.
Pageviews say almost nothing.
What counts is whether someone takes an action that signals buying intent.
Events versus key events
How: Determine 3 to 6 actions that really matter and set them up as events.
In GA4 language, every measured action is an event.
You mark the most important ones as a key event (GA4’s new name for what used to be a “conversion”), so GA4 counts them separately.
Google Ads then creates conversions from those key events, and those are what you bid on.
The key event switch sits in the GA4 admin:
The most common B2B events
Here’s what covers most B2B sites:
generate_leadon a submitted contact or quote form.demo_requeston a requested demo or intake call.file_downloadon a whitepaper, brochure or price list.newsletter_signupon a signup.
Measure the success, not the click
Measure these preferably on the thank-you page or via a form-success event in Tag Manager, not on the button click.
A click isn’t a lead. The form may still fail.
Example: Someone fills in your demo form and lands on /demo-thank-you/. Tag Manager fires the demo_request event there, and GA4 counts it as a key event.
In the Conversions report you then see exactly how many demos come in per channel.
Don’t mark everything
Common mistake: Marking everything as a conversion. If scroll depth, every pageview and every click all count, nothing is a conversion anymore.
Pick few, pick heavy.
If you want to go deeper on event quality, read up on engagement metrics in Google Analytics.
Step 3: Give your lead events value and context
A lead isn’t just a lead.
A quote request is worth more than a newsletter signup.
How: Attach a value to the event, for example your average lead value per type. Where possible, add parameters such as the form type or the industry.
That way you can later not only count, but weigh.
Example: weigh a quote request
Example: You set a value of 150 euros on the generate_lead event (your estimated value of an MQL) and a parameter form_type: quote.
In your reporting you then see not only volumes, but also which channels bring the heavier leads.
See also conversion rate per lead source to make sense of those numbers.
Where the value comes from
A value is only as good as the definition behind it. Two inputs help:
- Your lead stages: the line between an MQL and an SQL.
- Your scoring model: how lead scoring weighs a form type or a company size.
Common mistake: Giving all leads the same (or no) value. Google Ads will then optimize on volume instead of quality.
You pay for many light leads while the heavy ones stay away.
Step 4: Build audiences for remarketing and analysis
Audiences turn behavior into groups you’ll target and compare.
How: Create audiences in GA4 based on behavior. For example, visitors who saw the pricing page but didn’t fill in a form, or people who downloaded a whitepaper but haven’t requested a demo.
You share those audiences with Google Ads for remarketing and use them in your analysis.
Example: pricing viewed, no lead
Example: The audience “Pricing viewed, no lead” collects warm visitors who didn’t quite convert. You target them in Google Ads with a demo offer.
That’s exactly the kind of in-market audience we also cover in Google Ads audiences and targeting.
Create your audiences early
Common mistake: Creating audiences too late. Google says a new audience accumulates users from that point onward; only audiences shared with Google Ads get backfilled with up to 30 days of data.
So set up your core audiences right away, even if you only use them a month from now.
A standard property allows up to 100 audiences, so there’s room.
Step 5: Link GA4 to Google Ads
It’s the link that turns your GA4 data into bidding signals.
How: In GA4, go to Admin, Product links, Google Ads links, and link your Ads account. Then import your GA4 key events into Google Ads as conversion actions.
Import key events as conversions
Now your real leads flow back to your campaigns, and Smart Bidding can optimize on leads instead of clicks.
Your shared audiences also become usable here for remarketing.
The full click path is in our guide on how to link GA4 to Google Ads.
What an imported key event looks like
Here’s the imported contact form in our own Google Ads account:
The contact form conversion action in our own Google Ads account, October 2026. It’s set as primary, so campaigns optimise on real enquiries.
The “Primary action” setting is what Smart Bidding steers on.
Secondary actions are only reported.
Our experience: we usually run one primary goal and one secondary goal. The primary goal is the booking; the secondary goals are the steps that drive towards it.
Our guide to primary vs secondary conversions explains when to switch an action.
Example: bid on two lead actions
Example: After linking, you import generate_lead and demo_request as conversions in Google Ads. You set your bidding strategy to “Maximize conversions” with those two actions.
The algorithm now chases leads, not cheap clicks.
This is how one of our clients got substantially lower media costs by optimizing on quality: read the Facilicom case on 25% media savings.
Avoid double counting
Common mistake: Letting both the conversion in GA4 and your own Google Ads tag count the same action, which double-counts.
Check the All conversions screen for duplicates:
All conversions in our own Google Ads account, 1 to 16 October 2026. One source per action: the GA4 contact form, nothing counted twice.
Pick one counting source per action and stick to it.
Our Google Ads conversion tracking guide compares both sources.
Step 6: Set up your channel report
You’ll see which sources bring leads, not just visits.
How: Use the “Traffic acquisition” report and group on the default channel group (Organic Search, Paid Search, Paid Social, Direct, Referral, Email and more).
Make sure all your campaign URLs have clean UTM tags.
Otherwise paid or email traffic ends up in Direct and your report looks messy.
Consider a custom channel group if you want to track specific sources separately.
Example: a LinkedIn campaign
Example: Your LinkedIn campaign gets utm_source=linkedin&utm_medium=paid-social. Those leads then fall neatly into their own channel instead of disappearing into Direct.
Keep one UTM convention
Common mistake: Writing UTMs inconsistently (LinkedIn, linkedin, Linked-In).
The channel rules aren’t case sensitive, but your source report keeps every spelling as its own row.
So one source becomes three.
And a typo like Linked-In can miss the social-sites list and drop out of Paid Social altogether.
Set a fixed UTM convention and stick to it.
Our UTM parameters guide has a naming scheme you can copy.
The B2B pitfalls that break most setups
A technically correct GA4 install can still give a distorted picture.
Three B2B-specific problems cause most of it.
1. The long sales cycle
GA4 records the click and the lead conversion, but the deal often closes months later in your CRM.
Standard attribution then loses the trail.
The solution is a persistent lead ID that you carry from first visit to signed contract.
When the deal closes, you import it back to Google Ads as an offline conversion.
Here’s how that loop runs:
How to tackle that in detail: see attribution in long B2B sales cycles.
2. Offline conversions
In B2B, the real revenue is almost never settled online.
A lead from GA4 becomes an SQL in your CRM, then an opportunity, then a deal.
Your CRM’s lifecycle stages define those steps.
Here’s how HubSpot describes them:
HubSpot’s lifecycle stage definitions, checked 18 October 2026. Marketing hands over the MQL, but only sales decides what counts as an SQL.
Import those CRM statuses as offline conversions back into Google Ads.
The algorithm then learns which clicks lead to real deals, not just to forms.
Watch out: the import only works if the lead ID or click ID travels with the form into the CRM. Test it with one real form before you scale.
3. Consent and GDPR
Google updated consent mode in November 2023 with two extra signals, ad_user_data and ad_personalization.
Since then you need a correct cookie banner that passes all four consent signals to Google.
Without consent, GA4 can’t measure fully. It falls back on modeling.
Without a proper setup you also run a GDPR risk.
Arrange this from day one, not afterwards.
The details are in our explanation of Consent Mode v2 and Google Ads.
Bonus: measure your AI and ChatGPT traffic too
More and more B2B buyers start their search in ChatGPT, Perplexity or Gemini instead of Google.
GA4’s default channel group now has an AI Assistant channel for visits from known assistants such as ChatGPT, Gemini and Copilot.
Here’s what that traffic looks like in our own GA4:
Our own GA4, October 2026: chatgpt.com brought 0.22% of sessions in 90 days, yet 7.14% of all key events.
Small share of visits, big share of key events.
That’s exactly why you measure it.
But AI visits without a referrer still land under Direct, which makes you underestimate the impact of AI.
A custom channel group for AI sources catches what the default list misses.
We explain it fully in measuring ChatGPT traffic in GA4.
And AI in Google Analytics 4 shows how to use the built-in AI features.
Common mistakes at a glance
Here’s what breaks most B2B setups:
- Seeing pageviews as success instead of leads.
- Marking too many events as a conversion, so nothing has meaning anymore.
- Measuring button clicks instead of confirmed form submissions.
- Giving all leads the same (or no) value.
- Letting GA4 and Google Ads count double.
- Using UTM tags inconsistently or not at all.
- Ignoring the long sales cycle and settling everything on last-click.
- Only arranging Consent Mode v2 afterwards.
Which fix comes first?
Not every mistake costs the same. Here’s the order:
| Mistake | What it breaks | Fix first? |
|---|---|---|
| No consent setup | data and GDPR compliance | yes, day one |
| Button clicks as conversions | lead counts and bidding | yes |
| Double counting | Smart Bidding signals | yes |
| Too many key events | the meaning of “conversion” | soon |
| Same value for all leads | lead quality in bidding | soon |
| Messy UTMs | the channel report | ongoing |
| No lead ID | deal attribution | once the basics run |
Start at the top. Don’t skip ahead.
The first three distort every number below them.
Checklist: is your B2B GA4 set up right?
Tick these off. Don’t skip one:
- Property and web data stream created, Realtime confirms data.
- Own IP and test environment excluded from reporting.
- 3 to 6 key events defined on thank-you pages, marked as a conversion.
- Lead events have a value and context parameters.
- Core audiences created (e.g. “pricing viewed, no lead”).
- GA4 linked to Google Ads, key events imported, no double counting.
- UTM convention set and channel report clean.
- Lead ID and offline conversion import arranged for the long sales cycle.
- Consent Mode v2 set up correctly.
Not sure your current setup passes?
A tracking audit checks every item on this list against your live site.
What this means for your visibility in AI
A B2B GA4 that optimizes on leads and pipeline is better for your reporting.
It also shows which channels, AI search engines included, bring real customers.
That same specificity (concrete events, real numbers, a clear process) is what gets you cited as a source in AI answers too.
Whoever measurably proves what works builds the authority that generative search engines reward.
That’s what our GEO approach is about, deepened in GEO for B2B.
Frequently asked questions
How long does a GA4 setup for B2B take?
The property and data stream are quick: your own session shows up in Realtime within a minute. Audiences, the Google Ads link and a lead ID take longer, because they depend on your CRM and consent setup.
How many key events should a B2B site have?
Three to six. Pick the actions that signal buying intent, such as a quote request or a demo request, and leave scroll depth and clicks out.
Do I still need the Google Ads tag if I import GA4 key events?
Not for the same action. Pick one counting source per action, or you’ll double-count.
Next step
Want your GA4 setup and Google Ads link built or reviewed?
Check out our data analytics service or simply get in touch.
We’ll set it up with you, without vanity metrics.
Free website scan
Enter your website and get an automatic scan within minutes, with concrete technical and SEO improvements. No sales pitch.
We only use your details for your scan. No spam, unsubscribe anytime.