How to Enable Google Analytics

Cody Schneider10 min read

Ready to finally understand who is visiting your website, where they're coming from, and what they do once they arrive? Setting up Google Analytics is the first step toward getting those answers. This guide will walk you through the entire process of enabling Google Analytics 4, from creating your account to verifying that your website data is being tracked correctly.

GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

First, What Is Google Analytics?

Google Analytics 4 is a free web analytics service from Google that tracks and reports website traffic. It’s the industry standard for measuring how users interact with your digital property. By placing a small piece of tracking code on your website, GA4 collects anonymous data about your visitors and organizes it into helpful reports. This information is your roadmap to making smarter decisions about your content, marketing, and overall website strategy.

Why You Need It on Your Website

Without analytics, you’re essentially flying blind. You might create content you think your audience wants or run ads on platforms you assume they use, but you have no way of knowing what’s actually working. Enabling Google Analytics allows you to:

  • Understand Your Audience: Learn where your visitors are located, what languages they speak, and what devices (desktop, tablet, or mobile) they use to browse your site.
  • See How People Find You: Discover which channels are driving the most traffic. Are people finding you through Google searches, social media links, email newsletters, or by typing your URL directly?
  • Track User Behavior: Find out which pages are the most popular, how long people stay on your site, and what actions they take before leaving.
  • Measure Goals and Conversions: Track key business outcomes, such as e-commerce purchases, form submissions, or newsletter sign-ups to understand your marketing ROI.
  • Improve Your Website: Use the data to identify pages with high drop-off rates, fix broken user journeys, and double down on the content that resonates with your audience.

Step 1: Create Your Google Analytics Account and Property

Before you can track anything, you need a place for the data to live. This involves creating a Google Analytics account and your first "property." Think of the account as the parent folder for your business and the property as the specific folder for your website.

Here’s how to get it done:

  1. Navigate to the Google Analytics website and click "Start measuring."
  2. Sign in using your Google account. It's best practice to use the Google account associated with your business (e.g., your Google Workspace account).
  3. Account setup: The first screen will ask you for an "Account name." This should be your business or organization's name. Below that, you'll see "Account Data Sharing Settings." These control how your data is shared with Google. For most users, leaving these checked is fine. Click "Next."
  4. Property setup: Now, you'll create your property. Enter a "Property name" – this is typically the name of your website (e.g., "Main Company Website"). Select your "Reporting time zone" and "Currency." This is important for ensuring your reports reflect your business's day-to-day operations and revenue data accurately. Click "Next."
  5. Business details: Provide some basic information about your business, including your "Industry category" and "Business size."
  6. Choose your business objectives: In this final setup step, check the boxes that align with why you're using GA4 (e.g., "Generate leads," "Drive online sales"). This helps Google tailor your reporting interface. Click "Create."
  7. Review and accept the Google Analytics Terms of Service Agreement for your country.

After you accept the terms, you'll be moved directly into the next critical step: setting up your data stream.

GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

Step 2: Set Up Your Data Stream

A data stream is the source of data flowing into your GA4 property. Since you're tracking a website, you'll be creating a "Web" data stream.

  1. You'll be prompted to "Choose a platform." Select Web.
  2. On the "Set up data stream" screen, enter your website's URL. Make sure you select the correct protocol (http:// or https://) first.
  3. Give your stream a friendly name in the "Stream name" field, like "Company Website Stream." This name is for your convenience internally.
  4. Enhanced measurement: By default, this option is enabled. Leave it on! This is one of GA4's best features, automatically tracking key interactions like page views, scrolls, outbound link clicks, site search, and video engagement without any extra setup. You can view or manage these by clicking the gear icon.
  5. Click Create stream.

You'll now see a "Web stream details" page. Don't close this tab! This page contains the single most important piece of information for the entire setup: your Measurement ID, located in the top right. It will look something like this: G-XXXXXXXXXX. Copy this ID now, you'll need it in the next step.

Step 3: Add the Google Analytics Tag to Your Website

With your Measurement ID in hand, it's time to connect your website to your new GA4 property. This is done by adding a small JavaScript code snippet, also known as the "Google tag," to your site. This tag is what collects the user data and sends it back to Google Analytics.

Choosing the Right Installation Method

There are three primary ways to do this. Your choice depends on your website platform and your technical comfort level.

  • Platform Integration / Plugin (Easiest): Best for those using platforms like WordPress, Shopify, Squarespace, or Wix. You often just need to copy and paste your Measurement ID into a designated field.
  • Google Tag Manager (Recommended): The most flexible and scalable method. It allows you to manage all of your website marketing and analytics tags (not just GA) from a single dashboard, which is a very useful skill for modern digital marketers. You will need to install Google Tag Manager once and won't have to touch your site code ever again.
  • Manual Code Installation (Advanced): For those who are comfortable editing website HTML code directly.
GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

Method 1: Using a Platform Integration (The Easiest Way)

Most modern content management systems (CMS) and website builders have built-in integrations for Google Analytics.

For WordPress: The simplest way is to use a plugin. We recommend Site Kit by Google, as it easily integrates Analytics, Search Console, and other Google products. Alternatively, other plugins like "GA Google Analytics" and many popular themes have a dedicated spot where you can just paste your Measurement ID.

For Shopify: Log into your Shopify admin, go to Online Store > Preferences. In the "Google Analytics" section, there's a field to paste your Google tag. Follow Shopify's own on-screen prompts for current implementation details.

For Squarespace or Wix: Both platforms make this incredibly simple. In Squarespace, go to Settings > External API Keys. In Wix, navigate to Marketing & SEO > Marketing Integrations. In both cases, you will find a dedicated Google Analytics field where you will just need to paste your G-XXXXXXXXXX Measurement ID.

Method 2: Using Google Tag Manager (Recommended)

If you prefer a more robust setup, Google Tag Manager (GTM) is the way to go.

  1. If you haven't already, create a Google Tag Manager account and container for your website. Follow the instructions to add the GTM code snippet to your site.
  2. Inside your GTM container, go to Tags > New.
  3. Give your tag a descriptive name, like "Google Analytics - GA4 Configuration".
  4. In "Tag Configuration," choose the tag type Google Analytics: GA4 Configuration.
  5. In the "Measurement ID" field, paste your G-XXXXXXXXXX ID.
  6. Move to the "Triggering" section. Select "All Pages" to ensure the GA tag fires on every page of your website.
  7. Click Save. Finally, click the "Submit" and then "Publish" buttons in the top right to make your changes live.

GTM will now inject your GA4 tracking tag onto your website for you to make updates later to things without messing with code, all while streamlining and safekeeping your other important third-party JavaScript "tags," including marketing and ad-platform code (think "pixels," if that term is familiar to you).

Method 3: Pasting the Code Directly (Manual Installation)

This method involves editing your site's source code. Only proceed if you know your way around HTML files to avoid a catastrophic site display error that could bring down pages or affect their use.

  1. In your Google Analytics "Web stream details" page, click on "View tag instructions".
  2. You'll see a JavaScript snippet under the "Install manually" tab. This is your GA4 Global Site Tag (gtag.js). Copy the entire code block.
  3. Open your website's HTML file(s). You need to paste this code immediately after the opening <head> tag on every single page you want to track.
  4. If you use a template or theme system (like in a custom-built site or some WordPress themes), you can likely find a universal header file where you can safely and effectively paste the code once for global deployment.
GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

Step 4: Verify That Your Data is Being Collected

After installing the tag, the final step is to make sure it's working properly. Don't just assume everything is set up to find out days later that a key step went haywire.

The easiest and quickest way to verify a live tag is through GA's Realtime Report:

  1. In your GA4 property, navigate to the left menu in the interface. Under the Reports section, click on "Realtime".
  2. Get your website open on another device or page on your computer.
  3. After reloading your webpage(s), your actions should immediately be relayed to Google's servers, which will display the data. If it shows live data, congratulations! If no action registers, go back over the previous steps.

Data in standard reports like Acquisition and Engagement can take up to 48 hours to fully process. So don't worry if your full charts aren't visible immediately. Seeing '1' in Realtime means that you're connected and collecting data.

What to Do After Enabling Google Analytics

Congratulations, your GA4 account is now live! Installation and setup is just the first phase, several steps will make your data both cleaner and more pertinent:

  • Exclude your internal traffic: Create an IP filter (under Admin > Data Settings > Data Filters) to prevent your internal team traffic from showing in your GA data reports. This ensures that your visitor data reflects external users only.
  • Link to other Google products: For better-integrated data about Google organic search traffic, be sure to link with other Google products, such as Google Search Console, to gain useful SEO-related insights.
  • Start setting up conversions: This is the culmination of using these tools, you're tracking "goals"! Quickly flag important actions like purchase confirmations or contact form submissions. This will provide information about the key success events critical to your business, helping strengthen and focus your marketing efforts.

Final Thoughts

Enabling Google Analytics is a crucial step in moving from guess-driven decisions in your digital marketing to an analytics-based understanding of user behavior. This understanding fosters informed decision-making about customer preferences, which is foundational to your growth as an enterprise. Always start and end strategic business decisions with solid, data-derived insights from real customer interactions.

While setting up GA4 and its data streams might seem straightforward, understanding and leveraging practical use requires ongoing learning. Consider using resources like Google's demos and online courses to optimize your skills. At Graphed, we focus on enabling small enterprises to use their marketing and sales data effectively. By automating an integrated data solution, users can interact intuitively with their data sources to generate actionable insights that drive their 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!