Data & Tracking
How to Set Up Google Analytics 4 for B2B (step-by-step)
Copy for AI
Here is how to set up Google Analytics 4 for B2B: create a property with a web data stream, define your important actions (form submission, demo request, download) as key events and mark them as a conversion, build audiences around those events, and link GA4 to Google Ads so you can bid on real leads. The default install measures visitors, but in B2B you do not count visitors, you count leads and pipeline. The difference lies in the events you define and in how you handle the long sales cycle. In this step-by-step guide we walk through the full GA4 setup, with for each step the how, an example and the mistake most teams make.
Would you rather first know what a lead is worth before you dive into tracking? Work it out with our value-per-lead calculator. 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 will need to 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.
The setup itself runs in six steps, each building on the previous one. From the bare property to a clean channel report that optimizes on leads instead of on visitors:
Step 1: Create your property and web data stream
How: In GA4, go to Admin, create a new property under your account, choose Belgium (or the Netherlands) as the time zone and euro as the currency. 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.
Example: You create the property “Company Ltd, main site”, the data stream “www.company.be”, and within a minute you see your own session appear in Realtime. That is your proof the foundation is in place.
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.
Step 2: Define your key events and mark conversions
This is where B2B is truly different. Pageviews say almost nothing. What counts is whether someone takes an action that signals buying intent.
How: Determine 3 to 6 actions that really matter and set them up as events. In GA4 language, every measured action is an event; if you mark the most important ones as a key event (formerly “conversion”), GA4 counts them separately and you can bid on them later. The most common B2B events:
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 these preferably on the thank-you page or via a form-success event in Tag Manager, not on the button click. A button click does not mean the form was successful.
Example: Someone fills in your demo form and lands on /demo-thank-you/. Tag Manager fires the demo_request event there, GA4 counts it as a key event, and in the Conversions report you see exactly how many demos come in per channel.
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
How: A lead is not a lead. A quote request is worth more than a newsletter signup. So attach a value to the event (for example your average lead value per type) and, where possible, parameters like the form type or the industry. That way you can later not only count, but weigh.
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.
Common mistake: Giving all leads the same (or no) value. Google Ads will then optimize on volume instead of on quality, and you pay for many light leads while the heavy ones stay away.
Step 4: Build audiences for remarketing and analysis
How: Create audiences in GA4 based on behavior: visitors who saw the pricing page but did not fill in a form, or people who downloaded a whitepaper but have not yet requested a demo. You share those audiences with Google Ads for remarketing and use them in your analysis.
Example: The audience “Pricing viewed, no lead” collects warm visitors who did not quite convert. You target them in Google Ads with a demo offer. Exactly the kind of in-market audience we also cover in Google Ads audiences and targeting.
Common mistake: Creating audiences too late. GA4 only fills an audience with members from the moment you define it. So set up your core audiences right away, even if you only use them a month from now.
Step 5: Link GA4 to Google Ads
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. Now your real leads flow back to your campaigns, and Smart Bidding can optimize on leads instead of on clicks. Your shared audiences also become usable here for remarketing.
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, and the algorithm chases leads, not cheap clicks. This is how one of our clients achieved substantially lower media costs by optimizing on quality: read the Facilicom case on 25% media savings.
Common mistake: Letting both the conversion in GA4 and your own Google Ads tag count, which double-counts. Pick one counting source per action and stick to it.
Step 6: Set up your channel report
How: Use the “Traffic acquisition” report and group on the default channel grouping (Organic Search, Paid Search, Direct, Referral, Email). 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: Your LinkedIn campaign gets utm_source=linkedin&utm_medium=paid-social, so those leads fall neatly into their own channel instead of disappearing into Direct.
Common mistake: Writing UTMs inconsistently (LinkedIn, linkedin, Linked-In). GA4 is case-sensitive and turns that into three channels. Set a fixed UTM convention and stick to it.
The B2B pitfalls that break most setups
A technically correct GA4 install can still give a distorted picture. Three B2B-specific problems:
The long sales cycle. GA4 records the click and the lead conversion, but the deal often only 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, and offline conversion import back to Google Ads when the deal closes. How to tackle that: see attribution in long B2B sales cycles.
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. Import those CRM statuses as offline conversions back into Google Ads, so the algorithm learns which clicks lead to real deals, not just to forms.
Consent and GDPR. Since Consent Mode v2 you need a correct cookie banner that passes the consent signals to Google. Without consent, GA4 measures in a limited way (via modeling), and without a proper setup you 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 in Google. That traffic often lands in GA4 under Direct, which makes you underestimate the impact of AI. With a dedicated channel group for AI sources you make that stream visible. We explain it fully in measuring ChatGPT traffic in GA4 and show in AI in Google Analytics 4 how to leverage the built-in AI features.
Common mistakes at a glance
- 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.
Checklist: is your B2B GA4 set up right?
- 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.
What this means for your visibility in AI
A B2B GA4 that optimizes on leads and pipeline instead of on visitors is not only better for your reporting, it also makes visible which channels (including AI search engines) bring real customers. And that very specificity, concrete events, real numbers, a clear process, is what you need to be cited as a source in AI answers too. Whoever measurably proves what works builds the authority that generative search engines reward. That is what our GEO approach is all about, deepened in GEO for B2B.
Want to have your GA4 setup and Google Ads link set up or reviewed? Check out our data analytics service or simply get in touch. We will set it up together, 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.