How to Set Up Google Analytics for a Client
Setting up Google Analytics for a client requires a different approach than setting it up for your own website. You are the steward of their most valuable marketing asset: their data. This guide will walk you through the correct way to get access, install the tracking code, and perform the essential initial configurations to set your client up for success - all while ensuring they remain the sole owner of their data.
Good Fences Make Good Clients: Who Should Own the GA Account?
Before you touch a single setting, you must settle the most important question: who owns the Google Analytics account? The answer is always, without exception, the client.
Think of their website data as a digital asset, just like their domain name or their customer list. It holds the history of their business's online performance, customer behavior, and marketing ROI. If you, the agency or freelancer, create the account under your own Google login, you technically own that asset. This can lead to serious problems down the road:
- Data Hostage Situations: If your professional relationship with the client ends, transferring ownership can be messy. In a worst-case scenario, an unhappy agency could hold a client's historical data hostage, forcing them to start from scratch.
- Loss of History: Starting a new GA account means losing all past data. This makes year-over-year comparisons impossible and erases valuable trends and insights.
- Client Access Issues: If the primary account is yours, providing full and unfettered access to the client and their team can be complicated.
Here’s the golden rule: The client creates the Google Analytics account using their own Google account. You are then granted administrative access to set everything up and manage it for them. This keeps the lines of ownership clean and professional. Your role is to be a trusted partner and analyst, not the owner of their data.
Free PDF Guide
AI for Data Analysis Crash Course
Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.
Step 1: Gaining Access to Your Client's Google Analytics
Most of the time, your client will either have an old Universal Analytics account or a partially set up Google Analytics 4 property. Your first step is to get the correct level of access. Send these instructions to your client so they can add you as a user.
Instructions for Your Client to Grant You Access
- Log in to Google Analytics with your Google account.
- Click the Admin gear icon in the bottom-left corner.
- In the Account column, ensure the correct account is selected. Then click on Account Access Management. (Pro-tip: Requesting 'Account' level access is better than 'Property' level as it allows you to help create new properties if needed.)
- Click the blue + button in the top-right corner and select Add users.
- Enter the email address of your agency or freelancer contact (that's you!).
- Under Permissions, assign the Administrator role. This will give you the ability to manage users, link other Google products, and configure all settings.
- Click the Add button to confirm.
Once they've done this, you will receive an email notification and can access their account from your own Google Analytics login.
What if the Client Has No Account?
If your client is brand new to analytics, they'll need to create the account first. Guide them through this process over a call or send them these steps, emphasizing that they must perform these actions while logged into their Google account.
- Go to analytics.google.com and click Start measuring.
- Account setup: Enter their business name as the "Account name."
- Property setup: Name the property after their website (e.g., "Client Company Website"). Select their reporting time zone and currency.
- About your business: Fill in the information about their industry and business size.
- Business objectives: Choose the objectives most relevant to their goals.
- Accept the Google Analytics Terms of Service.
- After the account is created, they can move on to the Access Management steps above to grant you Administrator access.
Once you are an administrator, you can handle the rest of the technical setup.
Step 2: Installing and Verifying the GA4 Tracking Tag
With access secured, it's time to make sure Google Analytics is actually collecting data from their website. This is done by adding the GA4 tag to every page of the site. You can find the Measurement ID (looks like G-XXXXXXXXXX) by navigating to Admin > Data Streams > [Click on their web stream]. There are a few ways to install this tag.
Method 1: Using a CMS Integration or Plugin (The Easy Way)
Most modern website builders and content management systems (CMS) have a built-in spot for your Google Analytics tag. This is often the simplest and quickest option.
- For WordPress: Use a dedicated plugin like GA Google Analytics or an all-in-one header/footer script plugin. Simply install the plugin, go to its settings page, and paste the "G-" Measurement ID.
- For Shopify: Go to
Online Store > Preferences. There is a dedicated "Google Analytics" section where you can paste your Measurement ID. Shopify will handle the rest. - For Squarespace: Go to
Settings > Advanced > External API Keys. Paste your "G-" Measurement ID into the Google Analytics field.
Method 2: Using Google Tag Manager (The Best Way)
Google Tag Manager (GTM) is the most robust and flexible way to manage tracking scripts. It acts as a central container for all your tags (not just GA), allowing you to make updates without touching the website's code. This is the method professionals prefer.
- Create a GTM Account: Like with GA, the client should own the GTM account. Once they've created one and granted you access, you can proceed.
- Install GTM on the Site: Install the two GTM code snippets high in the
<head>and immediately after the opening<body>tag on every page of their site. - Create a GA4 Configuration Tag: Inside GTM, create a new tag. Choose the type "Google Analytics: GA4 Configuration." Paste your "G-" Measurement ID into the corresponding field.
- Set the Trigger: Set the tag's trigger to fire on "All Pages."
- Save and Publish: Save your changes and hit the blue "Submit" button to publish the GTM container, pushing your GA4 tag live.
Method 3: Adding the Code Directly (The Last Resort)
You can also add the gtag.js snippet directly into the website's <head> section. This is generally not recommended because edits can be overwritten during theme updates, and it requires direct code access. Only choose this path if the other two are not possible.
Don't Forget to Verify!
After installation, you must verify that data is being collected.
- GA4 Realtime Reports: In one browser tab, open the client's website and click around. In another, go to the
Reports > Realtimesection in GA4. If you see your visit appear within a minute, it’s working! - Google Tag Assistant: Use the
Previewmode in Google Tag Manager to see exactly which tags are firing on each page load. This is excellent for debugging more complex setups.
Step 3: Essential Post-Setup Configurations
Just installing the tag isn't enough. A few key settings will ensure better data quality from day one.
Define Internal Traffic
You don't want your agency's, freelancer's, or the client's own visits to their website skewing their analytics. Exclude this traffic by setting up an internal traffic filter.
- Go to
Admin > Data Streams > [Your Web Stream]. - Click
Configure tag settings > Show all > Define internal traffic. - Create a rule using your office IP addresses (you can search "what's my IP" on Google to find it). This will tag all traffic from these IPs as "internal." By default, GA4 has a pre-built filter to exclude any traffic marked "internal," so there's nothing more you need to do here.
Check Data Retention Settings
By default, GA4 only keeps user-level data (used in Explorations) for 2 months. You should immediately change this to the maximum.
- Go to
Admin > Data Settings > Data Retention. - Change the "Event data retention" dropdown from 2 months to 14 months and click Save.
Free PDF Guide
AI for Data Analysis Crash Course
Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.
Link Other Google Products
Linking accounts is a GA4 superpower. It enriches data by combining information from different tools.
- Google Ads: If the client runs Google Ads, go to
Admin > Product Links > Google Adsand link their ad account. This lets you import conversions from GA4 into Google Ads and see ad performance data within GA4 reports. - Google Search Console: Go to
Admin > Product Links > Search Console Linksto connect their Search Console profile. This pulls valuable organic search query data right into a new reporting section in GA4.
Enable Google Signals
Google Signals helps unify user data across different devices for signed-in Google users. It gives you a better understanding of the cross-device customer journey and enables demographic reporting and remarketing audiences.
- Navigate to
Admin > Data Settings > Data Collection. - Click the Get started button and follow the activation prompts. Be sure to make the client aware of any privacy policy updates that may be required for their website.
Final Thoughts
Properly setting up a client's Google Analytics account establishes a foundation of trust and data integrity. Always remember the client owns the data. Begin by gaining proper administrative access, and deploy the tracking tag using the most sustainable method - preferably Google Tag Manager. Completing these setup steps and initial configurations ensures you start collecting clean, actionable data from the very first day.
Once you have reliable data flowing in, the work shifts from setup to analysis. We built Graphed to make this next part easier. After connecting your client’s new GA4 property, you can stop fighting with complex reports and start asking plain English questions like, "Which marketing channels are driving the most conversions?" We automate the reporting process, turning hours of manual analysis into a 30-second conversation and helping you deliver insights to your clients faster than ever.
Related Articles
Facebook Ads for Hair Salons: The Complete 2026 Strategy Guide
Learn how to run profitable Facebook ads for hair salons in 2026. This guide covers audience targeting, ad creatives, retargeting strategies, and budget optimization to get more bookings.
Facebook Ads For Yoga Studios: The Complete 2026 Strategy Guide
Learn how to use Facebook ads for yoga studios to drive trial memberships and grow your practice in 2026. Complete setup guide, expert tips, and retargeting strategies.
Facebook Ads for Plumbers: The Complete 2026 Strategy Guide
Learn how to run profitable Facebook ads for plumbers in 2026. This comprehensive guide covers high-converting offers, targeting strategies, and proven tactics to grow your plumbing business.