How to Apply Google Analytics

Cody Schneider••10 min read

Setting up Google Analytics is one of the most important first steps you can take to understand your website's performance. It’s the key to knowing who your visitors are, where they come from, and what they do once they arrive. This tutorial will walk you through exactly how to create your account, install the tracking code, and start collecting a goldmine of data.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

What is Google Analytics and Why Do You Need It?

Google Analytics is a free web analytics service that tracks and reports website traffic. The latest version, Google Analytics 4, is built to give you a more complete picture of the customer journey across your website and apps. While it can seem complex, its core purpose is simple: to help you make better decisions by answering crucial questions about your business.

Without it, you're essentially flying blind. With it, you can:

  • Understand Your Audience: Discover where your visitors live, what devices they use, and which pages they're most interested in. This helps you create better content and a more user-friendly experience.
  • See What's Working (and What Isn't): Find out which marketing channels - like social media, Google Search, or email newsletters - are driving the most traffic and conversions. This lets you double down on strategies that work and stop wasting money on those that don't.
  • Track Your Goals: Measure how many people are filling out your contact form, signing up for your newsletter, or making a purchase. This turns vague traffic numbers into tangible business results.
  • Improve Your Website: Identify pages where users are dropping off or a checkout process that's confusing. These insights are essential for optimizing your site and increasing a visitor's engagement and conversions.

Getting Started: Creating Your Account and Property

Before you can add Google Analytics to your site, you first need an account and a “property.” Think of the Account as the folder for your business, and a Property as the specific folder for one of your websites or apps. If you have multiple websites, you can create multiple properties under one account.

Step 1: Sign up for Google Analytics

First, head over to the Google Analytics homepage. Sign in with your Google account (the same one you use for Gmail or Google Drive). If you’re already logged in, you can click "Start measuring" to begin the setup process. This will take you to the account creation screen.

Step 2: Create a New Account

Here you'll set up the top-level account. A popup will walk you through three main areas to add your key info, select your data settings, and add your first property.

  • Account Name: This is for your own internal reference. It’s best to just use your business name, like "My Awesome Company."
  • Account Data Sharing Settings: This section has checkboxes that control how your data is shared with Google. You can leave them as their recommended defaults or review each one. For most users, the standard settings are perfectly fine.

Once you’ve filled that out, click “Next.”

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Step 3: Create a Property

Now it's time to create a property for the website you want to track.

  • Property Name: Enter your website’s name here, such as “My Awesome Website.”
  • Reporting Time Zone: Select your local time zone. This is important so that data reported for "today" accurately reflects your business's day.
  • Currency: Choose the currency you do business in. This is especially important for e-commerce sites.

Click “Next” to move on.

Step 4: Answer Some Questions About Your Business

On the next screen, Google asks for your industry category and business size. Providing this information helps with a benchmarking feature, a data collection capability that enables GA to share anonymous industry-specific data with your account. Select all the reasons/actions that describe how you intend to use the analytics you will collect with your GA account.

Make your selections and click "Create." And just like that, you have a Google Analytics account and your first property! Now we're ready to connect it to your website.

Setting Up Your Data Stream and Tag

After creating your property, you'll be prompted to set up a "data stream." A data stream is simply the source of your data. Since you’re tracking a website, you’ll choose "Web."

Step 1: Configure Your Web Data Stream

In the "Set up a data stream" section, you’ll need to provide your website's URL and give the stream a name (using your website's name is fine).

Right underneath, you'll see a section for Enhanced measurement. This is a powerful feature in GA4 that's enabled by default. It automatically tracks important user interactions without you needing to add extra code. These include:

  • Page views
  • Scrolls (when a user scrolls 90% of a page)
  • Outbound clicks (clicks on links that lead away from your site)
  • Site search
  • Video engagement
  • File downloads

Leave Enhanced measurement turned on and click "Create stream."

Step 2: Find Your Measurement ID

Once you create your stream, you'll see a "Web stream details" page. At the top right, you'll find your Measurement ID. It starts with "G-" followed by a string of letters and numbers. This ID is how Google Analytics identifies your data stream. Copy it - you'll need it in the next step.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Step 3: Install the Google Tag on Your Website

Now for the most important part: adding the tracking code (called the "Google Tag") to your site. This little snippet of JavaScript is what collects data and sends it to your Google Analytics property. There are a few ways to do this, ranging from super easy to a bit technical.

Method 1: Use a Website Builder or CMS Plugin (The Easiest Way)

If you're using a platform like WordPress, Shopify, Squarespace, or Wix, this is by far the simplest option. Most of these platforms have built-in integrations or easy-to-use plugins specifically for Google Analytics.

For WordPress users:

  1. Log into your WordPress dashboard.
  2. On the left pane of your dashboard, click "Plugins."
  3. Type "Google Analytics" into the search box to find a reputable plugin. Site Kit by Google is Google’s official plugin and a great choice. MonsterInsights is another popular and highly-rated option.
  4. Install and activate the plugin of your choice. A new menu item will be created on your dashboard, and you can then click this to link your Google account to your website, following the steps from there. Many plugin wizards make it simple by connecting to your Google Account or asking for your Measurement ID (the "G-" number you just copied).

Method 2: Use Google Tag Manager (The Recommended Way)

If you plan on using other tracking tools in the future (like for Facebook ads or other analytics platforms), Google Tag Manager (GTM) is the way to go. It acts as a container for all your tracking tags, so you only have to add one code snippet to your site. After that, you can add, remove, and manage all other tags directly from the GTM interface.

Here’s the quick version of how to set it up:

  1. Open a browser tab separate from Google Analytics and your website. Go to the Google Tag Manager homepage, and set up an account and a “container” for your website.
  2. Once your container is created, navigate "Tags," and create a new one. Choose "Google Analytics" as an option, and click "Submit." Now the tag has been published to your site.
  3. GTM will provide you with two different code snippets that need to be added to your website - in separate areas of the site map - in your <head> section of every page, and the <body> section.

Method 3: Add the Tracking Code Manually to Your Website Headers

On your Web stream details screen, go to Installation instructions > Install manually and you can copy your tracking code. This snippet of JavaScript needs to be placed in the <head> section across every page of your website. Unless you are comfortable editing site code, one of the plugins or integrated options is the best solution.

<!-- Google tag (gtag.js) -->
<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>

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Verify Your Installation is Working

Once you’ve installed the tag, you need to make sure it's working properly. The best way to do an instant check is by looking for yourself as a live user via the "Realtime" report view within Google Analytics. Here's how you do it:

  1. Navigate to your Analytics account. On the left navigation end of your screen, you will find the "Realtime" link.
  2. In a new browser window or a tab in your same window, navigate to your own website, and go to one or two web pages to create a few page views that will register on the analytics view.
  3. Look at the "Realtime" report in Google Analytics. You should see a live visitor appear (likely from your geographic location). You can also see your actions in the 'Live Events' area on the report.

If you see yourself show up, congratulations - you've successfully installed GA4! Data will now start to be collected and reported in the coming hours and days.

Next Steps: What to Do After Installation

Installing the tracking code is the first step. To start getting value from Google Analytics, here are a few things you should configure right away:

  • Mark Key Events as Conversions: Out of the box, GA4 tracks a lot of events, but you need to tell it which ones are important for your business. These are called 'conversions.' Examples include form submissions or newsletter signups. In the Admin > Data Streams > Events panel, you can find the events that are important and toggle them on as conversions.
  • Exclude Your Team’s Traffic: You don't want your own visits skewing your data. In the Admin > Data Streams > Configure Settings, there is an option to define internal traffic. Here you can add IP addresses to filter out visits from your results.
  • Link Google Ads and Search Console: If you use other Google products, linking them to your Google Analytics account will unlock richer insights. In Admin > Product Links, you can link your Google Ads account to track ad campaign performance and your Search Console to track organic search data in your analytics reports.

Final Thoughts

Installing Google Analytics is one of the smartest first steps any business owner or marketer can take. It opens the door to understanding your audience, measuring marketing efforts, and making data-driven decisions that actually grow your business. But getting the data initialized is just the beginning. The real challenge lies in turning that data into answers, especially when integrating it with information from ads platforms, CRMs, and email tools.

At Graphed, we make this simple by connecting your Google Analytics account alongside all your other marketing and sales tools. Then, you can ask questions in plain English like "Show me the campaign with the best ROI this month?" and we'll build live dashboards and insights, not just menus. It's the easiest way to combine your data, answer questions, and get back to growing your business by skipping the manual reporting and analytics mishaps. Try Graphed for free today.

Related Articles