To add Google Analytics to a B2B website, create a Google Analytics 4 (GA4) property, install its tag on every page, confirm the tag is firing, and mark key actions such as demo requests as conversions. For small B2B teams, the goal is not more page views. It is seeing which pages and sources lead to qualified conversations you can follow up on.

Who This Setup Is For
This guide is written for founders, marketing leads and sales leaders at B2B software companies, agencies and professional services firms, typically teams of 1 to 200 people. If your website sells to other businesses and your pipeline depends on demo requests, pricing page visits and contact forms, the steps below apply directly.
Related: Google Analytics 4 Setup for B2B Teams: Add Your Site
Before You Start: Access and a Clear Goal
Gather access before you touch any code. You will need admin rights to your website or content management system, a Google account that will own the analytics property, and a list of the pages that matter most to revenue. Write down one primary goal, such as booked demos or trial sign-ups, so every later decision has a reference point.
Step-by-Step: Adding Google Analytics 4 to Your Site
- Create a GA4 account and property: Sign in at Google Analytics, create an account for your company, then add a property for your website with your correct time zone and currency.
- Create a data stream: Choose the web stream, enter your domain and save. Google generates a Measurement ID that starts with "G-".
- Install the tag: Add the Google tag to the header of every page, either directly or through Google Tag Manager. If your site uses a CMS plugin or built-in integration, paste the Measurement ID there instead of editing templates by hand.
- Verify it fires: Open your site in a private browser window, then check Realtime reports in GA4 and use Google Tag Assistant to confirm the tag loads on key pages, including forms and the pricing page.
- Set conversions: Mark events such as demo request submissions, pricing page views and contact form completions as conversions so they appear in your reports.
- Review weekly: Check the same reports at the same time each week so changes in traffic and conversions are easy to spot.
Related: Google Analytics for B2B SaaS Teams: 5 Pipeline Fixes
Set Conversions That Reflect B2B Revenue
Page views rarely predict pipeline. Prioritize events that signal buying intent: demo request forms, pricing page visits, documentation pages a prospect reads before a call, and high-intent contact forms. Keep the list short. Ten conversions that nobody reviews are less useful than three that your sales team acts on.
Name events in plain language
Use event names your whole team understands, such as demo_request or pricing_view. Clear names make it easier for marketing and sales to agree on what counts as a lead.
Connect Traffic Data to Your CRM
Google Analytics shows aggregate behavior, but sales teams work with accounts and contacts. Pass the source, landing page and conversion details into your CRM so reps see where a lead came from. If you use HubSpot or Salesforce, follow a dedicated setup process so fields map correctly. The guide on HubSpot and Salesforce visitor identification setup walks through that mapping for small teams.
What Google Analytics Cannot Tell You
Google Analytics reports on sessions, sources and pages. It does not normally name the person or company behind an anonymous visit. That gap is why many B2B teams add a visitor identification layer. Happierleads is a B2B website visitor identification platform that reveals the exact person behind each visit, and it adds AI lead scoring, intent data, email outreach automation and CRM integrations on top. Analytics and identification work well together: analytics tells you which pages matter, and identification tells you which accounts are reading them.
If you want to judge the impact of either approach, measure opportunities and pipeline rather than traffic alone. The article on visitor ID metrics that measure pipeline covers which numbers to track.
Privacy and Consent Basics
Analytics tags set cookies and process personal data, so consent matters. If you sell to customers in the UK or EU, GDPR rules apply, and if you serve California residents, CCPA applies. Use a consent banner where required, document what you collect, and set data retention periods in GA4. The guide on GDPR and CCPA rules for visitor ID explains how these obligations apply to B2B sites.
Common Mistakes to Avoid
- Skipping verification: A tag that does not fire produces empty reports for weeks before anyone notices.
- Tracking everything: Too many events bury the few that predict demos and deals.
- Ignoring consent: Collecting data without a clear basis creates legal risk for B2B sites with EU or UK visitors.
- Reporting traffic instead of pipeline: Sessions are easy to grow and hard to tie to revenue. Connect conversions to CRM stages where possible.
Next Steps for Your Team
Once tracking is verified and conversions are set, review the first month of data with sales. Ask which pages reps mention on calls, then adjust your tracked events. If you also want to know which companies are visiting those pages, book a call with Happierleads to see how visitor identification fits into your current stack.
Ready to see who is behind your B2B website traffic? Book a free demo with Happierleads and we will walk through your setup with you.
Frequently asked questions
Do I need Google Tag Manager to add Google Analytics?
No. You can install the GA4 Google tag directly in your site header or through a CMS integration. Google Tag Manager is useful when several tags need managing without editing site code.
What is the difference between GA4 and Universal Analytics?
GA4 is the current version of Google Analytics and is event-based. Universal Analytics no longer processes data, so new setups should use a GA4 property.
Which conversions should a B2B website track?
Start with demo requests, pricing page views and contact form completions. These signal buying intent and are easiest to connect to CRM pipeline stages.
Does Google Analytics identify the companies visiting my site?
Google Analytics mainly reports aggregated sessions and sources. Identifying the person or company behind a visit requires a separate visitor identification tool, such as Happierleads.
Do GDPR and CCPA apply to Google Analytics on a B2B site?
They can. If you have UK, EU or California visitors, you may need a consent mechanism, a privacy notice and defined data retention settings. Review your obligations with a qualified adviser.




