How to Segment by Clients in Google Analytics
Ever wonder what a specific client or prospect is actually doing on your site? Seeing your overall traffic is great, but knowing that a key account spent ten minutes on your pricing page is pure gold. This article will show you exactly how to set up Google Analytics to track and segment visits from individual clients.
We'll cover the best and most practical methods for tagging client traffic and creating specific reports, helping you move from guessing to knowing exactly how your most important accounts are engaging with your business online.
Why Bother Segmenting Client Traffic?
Before we get into the "how," let's quickly touch on the "why." Isolating traffic from a B2B client isn't just a neat trick, it provides direct business value. For freelancers and agencies, it’s a way to confirm if a prospect reviewed your portfolio after a big meeting. For sales teams, it’s about tracking engagement from a high-value account that just entered the pipeline.
Here are a few common scenarios where segmenting by client is incredibly useful:
- Validating Prospect Interest: After sending a proposal to a promising lead, you can see if they are returning to your site to check out case studies or your team page, giving you a perfect reason to follow up.
- Client Reporting: If you manage a client's website as part of your services, you can filter out your own team's visits to provide cleaner, more accurate traffic reports.
- Account-Based Marketing (ABM): For B2B companies, you can measure the effectiveness of your ABM campaigns by tracking if your target accounts are visiting the specific landing pages you created for them.
- Usage & Adoption: If you run a SaaS company, you can give a logged-in client a unique link to your help docs and see which articles they are reading most, identifying potential areas where they need support.
Essentially, this level of segmentation gives you a direct line of sight into the behavior of your most valuable audiences, turning your general analytics into a powerful client intelligence tool.
Choose Your Method: UTMs vs. Custom Dimensions
Google Analytics doesn't have a default "Client Name" field, so we have to give it that information ourselves. There are two primary, effective ways to do this: using special tracking links with UTM parameters or setting up a more permanent solution with Custom Dimensions.
For most people, especially if you need to do this for a specific email or ad hoc link, UTM parameters are the fastest and simplest way to get started. If you want a more robust, long-term tracking system that’s less reliant on specific links, Custom Dimensions are the more powerful option, though they take a bit more setup.
There's also an old-school method of filtering by IP address, but for reasons we'll cover later, it's largely unreliable and not recommended.
Method 1: Using UTM Parameters to Tag Client Links (The Easy Way)
UTM (Urchin Tracking Module) parameters are simple tags you add to the end of a URL. When someone clicks that link, the tags tell Google Analytics detailed information about where that person came from. You’ve likely seen them before - they look like this:
yourwebsite.com/solutions?utm_source=linkedin&utm_medium=social&utm_campaign=product_launch
While usually used for marketing campaigns, we can cleverly use them to identify clients. We'll simply use a parameter like utm_campaign to hold our client's name.
Step-by-Step Instructions:
1. Build Your Client-Specific URL
The easiest way to do this is with Google’s own Campaign URL Builder. Don't worry about all the fields, we only need a few.
Let's say you're sending a fictional client named "Acme Corp" a link to your pricing page. Here’s how you’d fill out the URL builder:
- Website URL:
https://www.yourwebsite.com/pricing - Campaign Source (utm_source): You can put something descriptive here like
client-linkoremail. This just indicates how you sent the link. - Campaign Medium (utm_medium): This further describes the source. If you put
emailas the source, you could putpersonalhere to distinguish it from a mass newsletter. - Campaign Name (utm_campaign): This is the most important part! Enter your client’s name here in a web-friendly format. For "Acme Corp," you might use
acme-corp.
The tool will generate a full URL for you to copy. It will look like this:
https://www.yourwebsite.com/pricing?utm_source=email&utm_medium=personal&utm_campaign=acme-corp
2. Send the URL to Your Client
Now, just use this new, tagged URL whenever you communicate with Acme Corp. Send it in an email, a Slack message, or include it in their proposal document. Every time someone clicks that specific link, Google Analytics will tag their session with "acme-corp".
3. Find Your Client's Data in GA4
After your client has visited the link, give it an hour or so for the data to appear in GA4. Here is how you can find it:
- In the left-hand menu of GA4, go to Reports → Acquisition → Traffic acquisition.
- The default report shows a table with a column called Session default channel group. Click this dropdown and change it to Session campaign.
- Voila! You will now see
acme-corp(or whatever you named your campaign) listed in the table, with the exact number of users, sessions, and conversions from that link.
You can also use this in an Exploration report to dig deeper. Simply create a new Free Form exploration and use "Session campaign" as a dimension to filter your data and see exactly which pages they viewed.
Method 2: Using Custom Dimensions (The Advanced Way)
If you're looking for a more permanent or scalable way to track clients that doesn't require sending custom links every time, Custom Dimensions are the solution. This method involves creating a new, custom field in your GA4 property (e.g., "Client Name") and then passing data to it.
This approach is best if you want to identify a client every time they visit your site, assuming they've been tagged once before. It usually relies on URL parameters initially, but cookies can help persist the tag for future visits. Setup requires a few more steps, often involving Google Tag Manager (GTM).
Step-by-Step Instructions:
1. Create a Custom Dimension in GA4
First, we need to tell GA4 to expect this new piece of data.
- Go to your GA4 property and click on Admin (the gear icon in the bottom-left).
- Under Data display, click on Custom definitions.
- Click the Create custom dimensions button.
- Configure it as follows:
- Click Save. It can take up to 24-48 hours for a new custom dimension to become available for use in reports.
2. Send Data to the Custom Dimension (using a URL Parameter)
Now we need a way to send the client's name to our new client_name user property. A common way is to create a simple link like this: yourwebsite.com?client=Acme_Corp.
This isn't a UTM parameter. It’s a generic query parameter that we'll teach Google Tag Manager to recognize. The goal is: if GTM sees client=Acme_Corp in the URL, it will send "Acme_Corp" to GA4 as the user's Client Name.
While you can do this by editing your website's tracking code, using GTM is much easier and doesn't require a developer.
3. Configure Google Tag Manager to Capture the Client Name
- Create a Variable: In GTM, first we create a variable to capture the value from the URL (e.g., "Acme_Corp").
- Update Your GA4 Tag: Next, we tell our main GA4 tag to send this variable's information along with all the regular pageview data.
Now, whenever an individual receives a link with ?client=[ClientName], GTM will grab that name and set it as the user property in GA4. Since it’s user-scoped, it’ll be associated with them for future visits, even if they arrive via a different link later!
4. Build Reports Using Your New Custom Dimension
Once data starts flowing in, you can use your "Client Name" dimension anywhere in GA4 Explorations just like a standard dimension. Create a new segment where Client Name exactly matches Acme_Corp, and you’ll have a complete, filtered view of every action that client has taken on your site.
A Quick Word on IP Filtering: Just Don't
You may be tempted to filter by the IP address of your client’s office. It’s a feature in Google Analytics’ Admin area and sounds easy. But several serious flaws make this method less effective:
- Remote Work: People don’t always work from the office. Employees could be working from home, a café, or an airport. IP filtering only works if everyone is in one building.
- Dynamic IPs: Most office and home networks don’t have a static IP Address. They change, and you’ll be constantly updating them.
- Privacy Concerns: With rules like GDPR and CCPA, tracking an individual’s IP address is invasive. It’s not worth the risk.
Stick to UTMs and Custom Dimensions, which are more reliable and privacy-friendly.
Final Thoughts
Although Google Analytics doesn’t have a default "client" field, setting up UTMs or Custom Dimensions is a straightforward way to turn client analysis into a powerful tool for ABM, sales intelligence, and client reporting. This focused view allows you to see the real behavior of your key accounts, enabling you to make smarter, more personal decisions.
Manually generating special links and building segments in Google Analytics works, but it can be time-consuming, especially when managing dozens of clients. That's why we built Graphed to do the heavy lifting for you. Once you connect your data, you can skip the setup and just ask a question in plain English like, "What pages did users from Acme Corp view on our website last month?" In seconds, we’ll build the report you need with all the correct segments and filters, so you can spend less time wrangling data and more time acting on it.
Related Articles
How to Enable Data Analysis in Excel
Enable Excel's hidden data analysis tools with our step-by-step guide. Uncover trends, make forecasts, and turn raw numbers into actionable insights today!
What SEO Tools Work with Google Analytics?
Discover which SEO tools integrate seamlessly with Google Analytics to provide a comprehensive view of your site's performance. Optimize your SEO strategy now!
Looker Studio vs Metabase: Which BI Tool Actually Fits Your Team?
Looker Studio and Metabase both help you turn raw data into dashboards, but they take completely different approaches. This guide breaks down where each tool fits, what they are good at, and which one matches your actual workflow.