How to Use Google Analytics to Track Visitors

Cody Schneider9 min read

Knowing who visits your website is the first step to growing your business online. Google Analytics 4 is the industry-standard tool for this, giving you a detailed look into your audience - where they come from, what they do, and which content they find most interesting. This guide will walk you through setting up GA4 and show you exactly where to find the key reports that turn raw data into actionable insights.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

First Things First: Setting Up Google Analytics 4

Before you can track visitors, you need to get Google Analytics set up on your website. If you haven't done this already, it’s a straightforward process that involves creating an account and placing a small snippet of code on your site.

1. Create a Google Analytics Account and Property

Your Google Analytics account is the main container for all your tracking. Within an account, you can have one or more "Properties." A property typically represents a single website or app.

  • Go to the Google Analytics homepage and click "Start for free."
  • If you don't already have one, follow the prompts to create an Account. Give it a name related to your business (e.g., "My Business Inc.").
  • Next, you'll be prompted to create a Property. Name it after your website (e.g., "MyBusiness.com Website"). Set your reporting time zone and currency.
  • Google will ask you some optional questions about your business category and size. Fill these out to complete the basic setup.
GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

2. Install the Tracking Code on Your Website

Once your property is created, Google needs a way to "see" the visitors on your site. This is done by adding a tracking tag. You’ll be taken to the "Data Streams" page to set this up.

  1. Choose a platform: Click on "Web."
  2. Enter your website details: Input your website's URL (e.g., https://www.yourwebsite.com) and create a stream name (e.g., "Your Website Stream").
  3. Get the installation instructions: After you create the stream, a new window will pop up with installation details. You have a few options here.

Option A: Use a Website Builder or CMS Integration (Easiest)

If you use a common platform like WordPress, Shopify, Squarespace, or Wix, they often have a dedicated field where you can just paste your "Measurement ID" (which looks like G-XXXXXXXXXX). GA4’s setup screen will often detect your platform and give you specific instructions. This is the simplest method and requires no code editing.

Option B: Install Manually with the Global Site Tag (gtag.js)

If your website is custom-built or you don’t have a simple plugin, you’ll need to add the tracking code directly to your site’s HTML. It might sound technical, but it’s just a copy-and-paste job.

  • Find the “Global site tag (gtag.js)” section and copy the entire code snippet provided.
  • Paste this snippet immediately after the <head> tag on every single page of your website. If you use a template or theme system, you usually only need to add it to one file (like header.php in a WordPress theme).

Your code will look something like this:

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [],
  function gtag(){dataLayer.push(arguments),}
  gtag('js', new Date()),

  gtag('config', 'G-XXXXXXXXXX'),
</script>

3. Verify Your Installation

Once the code is on your site, you want to make sure it's working. The easiest way is to use the Realtime report in GA4.

  • Open your website in a new browser tab.
  • In Google Analytics, navigate to Reports > Realtime.
  • You should see at least one "User" show up on the map within a minute or two. If you see your own visit register, you've successfully installed the tracking code!

Now that you're collecting data, let's explore where to find it.

Where to Find Visitor Information in GA4

Google Analytics 4 organizes visitor data into different categories: Demographics (who they are), Acquisition (how they found you), and Engagement (what they do on your site). Here’s how to navigate to the most important reports.

The Reports Snapshot: Your High-Level Dashboard

When you first click into the "Reports" section, you land on the Reports snapshot. Think of this as your main dashboard. It provides a quick overview with key cards like:

  • Users and New users: The total number of unique individuals who visited your site.
  • Sessions: The number of visits to your site. One user can have multiple sessions.
  • Average engagement time: The average duration your site was the main focus in the user's browser. It's a key metric for understanding if visitors are actually reading your content.
  • Views by Page title and screen class: Your most popular pages.
  • Users by Country: A map showing where your visitors are located.
GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Deep Dive in Demographics: Who Are Your Visitors?

To understand your audience's characteristics, head to Reports > User > User attributes > Demographics details. This report breaks down your audience by their core attributes.

Here you’ll find information on:

  • Country & City: See where your audience is physically located. This is incredibly useful for tailoring marketing campaigns, shipping info, or content to specific regions.
  • Age & Gender: Understand the age groups and gender breakdown of your audience. This helps in refining your brand voice and imagery.
  • Language: See the primary browser language of your users.

Pro Tip: You might notice that Age, Gender, and Interest data is missing or incomplete at first. To gather this information, you must enable Google Signals. Go to Admin > Data Collection and Modification > Data Collection, and toggle on "Enable Google Signals data collection." This allows Google to include aggregated and anonymized data from users who are signed into their Google accounts and have Ad Personalization turned on.

Understand How Visitors Arrive: The Traffic Acquisition Report

One of the most valuable things to know is how people are discovering your site. The Traffic Acquisition report answers this question perfectly. Navigate to Reports > Acquisition > Traffic acquisition.

Here, the data is grouped by Session default channel group. These channels are broad categories of traffic sources:

  • Organic Search: Visitors who arrived after searching on a search engine like Google or Bing and clicked a non-paid link. This tells you how well your SEO is working.
  • Direct: People who typed your URL directly into their browser or used a bookmark. This often represents returning visitors or people familiar with your brand.
  • Organic Social: Traffic from unpaid links on social media platforms like Facebook, X (Twitter), or LinkedIn.
  • Paid Search: Clicks from paid ads on search engines (e.g., Google Ads).
  • Referral: Visitors who clicked a link to your site from another website (e.g., a blog post that mentioned your business).

This report is essential for marketers. If you notice "Organic Social" growing, you know your social media efforts are paying off. If "Paid Search" numbers are strong but conversions are low, maybe your landing page needs work.

See What They're Doing: Engagement Reports

Once visitors arrive, what do they do? The Engagement reports give you the answers. Go to Reports > Engagement.

  • Pages and screens: This report is your "Top Content" list. It shows a list of your website pages ordered by Views. This helps you see what content resonates most with your audience so you can create more of it. It also shows the average engagement time per page, which can indicate which articles or product pages are holding visitor attention.
  • Events: An "event" in GA4 is any interaction a user has with your site. Default events include page_view, scroll (when a user scrolls 90% of the page), and click (for outbound links). Tracking these custom actions is crucial to understanding whether your visitors are taking the steps you want them to take.
GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Analyze Your Technical Audience: Tech Reports

Knowing what technology your visitors use to access your site can help you prioritize design and development work. Find this under Reports > Tech > Tech details.

You can toggle the drop-down menu here to see breakdowns by:

  • Browser: Are most of your visitors using Chrome, Safari, or Firefox? This can help with QA testing new features.
  • Device Category: Shows the split between Desktop, Mobile, and Tablet. For most websites, mobile is now the dominant category. If your data shows 70% of users are on mobile, it’s a clear sign that optimizing your mobile experience should be a top priority.
  • Operating System: See the split between Windows, macOS, iOS, Android, etc.

Filter Your View with Comparisons

Any report in GA4 can be segmented for deeper analysis using the "Add comparison" feature at the top of the interface. This lets you see two or more segments of your audience side by side.

For example, in the Pages and screens report, you could add a comparison to see:

  • Page Views from Mobile vs. Page Views from Desktop
  • Page Views from Organic Search vs. Page Views from Direct Traffic
  • The behavior of New visitors vs. Returning visitors

Comparisons allow you to move from simply seeing what is happening to understanding why specific groups of users behave differently.

Final Thoughts

Setting up Google Analytics and regularly checking a few key reports puts you in a powerful position. By understanding who your visitors are, where they come from, and what content they value, you can stop guessing and start making data-driven decisions to grow your website and your business.

As valuable as GA4 is, analyzing performance can quickly become a full-time job, especially when you need to connect the dots with data from your ads platforms, e-commerce store, and CRM. That's why we built Graphed. Our platform connects directly to Google Analytics, Shopify, Facebook Ads, Salesforce, and all your other tools, allowing you to build comprehensive dashboards in seconds by just describing what you want to see in simple English. You can skip the tedious platform-hopping and manual report building and get right to the insights that drive your business forward.

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!