Case Studies / B2B & B2C Segmentation
Analytics Google Tag Manager GA4 NetSuite

They Were Spending on Ads Without Knowing if the Buyers Were Retail, Wholesale, or Trade. We Fixed That in Real Time.

When your business sells to both everyday consumers and trade buyers like pharmacies and wholesalers, you need to know which group is responding to your advertising. Without that, you're splitting your budget blind. Here's how we gave this client complete visibility — and what they did with it.

Real-Time

Customer Segmentation

+35%

B2B ROAS Improvement

1 Dashboard

All Segments, All Channels

The Problem

Every Sale Looked the Same in Their Analytics. But They Weren't.

This client ran a busy e-commerce store that sold to two very different groups of people. One group was everyday consumers buying for personal use. The other was trade buyers — pharmacies, wholesalers, healthcare businesses — buying in larger quantities on account.

Both types of customer were going through the same website. Both were generating revenue. But inside Google Analytics, all purchases looked identical. There was no way to tell a retail consumer from a pharmacy placing a bulk order.

This created a serious blind spot. When they looked at their Google Ads performance, they could see total sales and total revenue — but they couldn't see who was buying. A campaign might appear to be performing well, but if it was only attracting low-value retail buyers and missing the high-value trade accounts, they'd never know.

They also had no insight into which industries their B2B customers came from. Knowing that a segment of customers is "business buyers" is useful. Knowing that pharmacies specifically account for a disproportionate share of your revenue — that's actionable.

"They were running paid ads across multiple channels but had no way to know whether the buyers converting were their most valuable trade customers or one-time retail shoppers. Every decision about ad spend was a guess."

Our Solution

We Unlocked the Hidden Customer Data — and Wired It Straight Into Google Analytics

The information we needed was already in the system — the website knew exactly who each customer was. The challenge was getting that information out and into a place where the analytics tools could use it. Here's how we did it.

1

Find the Customer Data Hidden Inside the Website

Modern e-commerce platforms like this client's NetSuite store carry a lot of data about each customer session — who's logged in, what kind of account they have, what their customer classification is. This data often exists on the website but isn't automatically shared with analytics tools.

We went through the website's data layer — the behind-the-scenes stream of information that flows as customers browse and buy — to locate the fields that described the customer type. Some of them weren't being made available at all initially. We worked with the site configuration to surface those fields so they could actually be read and used.

2

Capture the Right Information at the Right Moment

Once we knew where the data lived, we set up Google Tag Manager to read it every time a customer interacted with the site. We captured four key pieces of information:

  • Login status — is the customer signed in to an account, or shopping as a guest? Logged-in users are almost always more valuable and more loyal.
  • New vs returning buyer — is this person buying for the first time, or are they a returning customer? This directly shapes how much you should spend to acquire them.
  • B2B or B2C — is this a trade account or a retail consumer? The two groups have completely different lifetime values, order sizes, and reorder rates.
  • Industry / customer type — for B2B accounts, what kind of business are they? Pharmacy, wholesale, healthcare, retail trade — each segment has different purchasing behaviour and different value to the business.
3

Send It to Google Analytics as a Permanent User Property

In Google Analytics 4, you can attach properties to a user that persist across all their sessions. We used this to pass the customer type as a "user-scoped dimension" — meaning once GA4 knows a user is a B2B pharmacy account, it remembers that across every visit and applies it to all their historical data too.

This is what makes the segmentation powerful. Every report in GA4 — ad performance, source and medium breakdowns, conversion rates, revenue — can now be filtered by customer type. Suddenly, the client could answer questions they'd never been able to ask before.

4

Build a Dashboard That Showed Everything in One Place

Data sitting inside GA4 is only useful if you can read it easily. We built a custom dashboard in Google Looker Studio (formerly Google Data Studio) that connected directly to the GA4 data and presented it in a way the client's team could use without any technical knowledge.

The dashboard showed revenue, conversion rates, and ad performance broken down by customer segment — B2B vs B2C, industry type, new vs returning — alongside the source and medium data showing exactly which advertising channels were driving each type of customer. Everything in one screen.

The Results

From Flying Blind to Knowing Exactly Which Customers Are Worth More

Real-Time

Segmentation

Every customer tagged the moment they interact with the site — no manual work, no delay.

+35%

B2B ROAS

Once B2B revenue was visible separately, the client could shift budget to the channels that were driving it.

1-Click

Reporting

All segments, all channels, all time periods — in a single Looker Studio dashboard anyone can use.

What the Client Could Do After — That They Couldn't Before

  • See which ad campaigns attracted B2B buyers vs retail consumers — and shift budget towards whichever was generating more valuable orders.
  • Identify which industries were driving the most repeat purchases — for example, knowing that pharmacies re-ordered far more often than general wholesale accounts changes how you approach marketing to each group.
  • Understand the real value of new vs returning customers — which in turn informs how much it makes sense to spend acquiring a new customer through paid advertising.
  • Build better audiences in Google Ads — because GA4 audience segments based on real customer type can be imported directly into Google Ads for smarter bidding and targeting.
  • Report on performance without needing a developer — the Looker Studio dashboard made all of this accessible to the marketing and management team without any technical knowledge.

Do You Have a Segmentation Blind Spot?

This solution is relevant if your business does any of the following:

You sell to both businesses and consumers through the same website

Your analytics shows combined revenue figures but you can't split them by customer type

You suspect your trade or B2B customers are more valuable but can't prove it with data

You're running Google Ads but can't segment campaign results by customer profile

Your customer data lives in your website or CRM but doesn't flow through to your analytics

You have a logged-in account system and account types but they're invisible in GA4

This approach works for any e-commerce platform that stores customer account information — NetSuite SuiteCommerce, Shopify Plus, Magento, WooCommerce, or custom-built stores. If your platform knows who a customer is when they log in, we can get that information into GA4.

Common Questions

Want to See Your B2B and B2C Performance Separately?

We'll review your current analytics setup and tell you exactly what's missing — and what we'd build to give you the full picture. No jargon, no commitment.