How to Turn On Google Analytics

Cody Schneider7 min read

Turning on Google Analytics is your first step toward understanding how people find and interact with your website. This guide will walk you through the essential process of creating a new Google Analytics 4 account and getting the tracking code installed so you can start making data-driven decisions right away.

GraphedGraphed

Your AI Data Analyst to Create Live Dashboards

Connect your data sources and let AI build beautiful, real-time dashboards for you in seconds.

Watch Graphed demo video

Before You Begin: What You'll Need

Setting up Google Analytics is a straightforward process, but you'll have a smoother experience if you have two things ready to go:

  • A Google Account: You'll need a Google account (like a Gmail address) to create and access your Analytics account. If you don't have one, you can create one for free. It's best practice to use a business email associated with your domain via Google Workspace if you have one.
  • Access to Your Website's Backend: You’ll need a way to add a small snippet of code to your website. This could mean having administrative access to your WordPress dashboard, Shopify store, Squarespace site, or the ability to edit your site's HTML files.

Step 1: Create Your Google Analytics Account

First, you need to create the main "Account," which will act as a container for your website properties. One account can hold multiple properties (websites or apps).

  1. Navigate to the Google Analytics homepage and click "Start for free." You'll be prompted to sign in with your Google account.
  2. Once signed in, click "Start measuring." This kicks off the setup process.
  3. On the Account creation page, fill in your Account name. This is usually your business or company name. For example, "Coyote Coffee Supply."
  4. Next, you'll see Account Data Sharing Settings. These checkboxes control how your analytics data is shared with Google for things like technical support and benchmarking. Review these and check the ones you are comfortable with. They don't impact your data collection.
  5. Click Next.

Step 2: Create a Property

Now you'll create a "Property," which represents your website or app. This is where your actual data will be collected and reported.

  1. On the Property creation page, enter a Property name. This is typically the name of your website. For example, "coyotecoffeesupply.com."
  2. Select your Reporting time zone and Currency. This is extremely important! Your reports will be based on this time zone, so choose the one that makes the most sense for your business operations. For currency, an ecommerce store should select the currency it operates in to accurately track revenue.

You can ignore the "Show advanced options" link. This was primarily for creating old Universal Analytics properties, which are no longer active. You want to create a Google Analytics 4 property, which is now the default.

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 3: Tell Google About Your Business

Next, Google will ask for a few details about your business. This information helps them provide relevant benchmarks and tailor your experience.

  1. Select your Industry Category from the dropdown menu (e.g., "Shopping," "Food & Drink").
  2. Choose your Business size based on the number of employees.
  3. Check the boxes for how you intend to use Google Analytics. Most new users select options like "Measure customer engagement with my site or app," "Optimize my advertising cost," and "Measure data across multiple devices or platforms." Choose all that apply to your goals.
  4. Click Create and accept the Google Analytics Terms of Service Agreement for your country.

Step 4: Set Up a Data Stream

Once you accept the terms, you’ll be prompted to create your first data stream. A data stream is simply the source of your data. For a website, you will create a "Web" stream.

  1. You'll be presented with three options: "Web," "Android app," and "iOS app." Choose Web.
  2. Enter your website's URL. Make sure you select either http:// or https:// accurately. Most modern websites use https://.
  3. Give your stream a friendly name in the "Stream name" field. Using your website URL is a common and easy choice, like "coyotecoffeesupply.com."
  4. Ensure that Enhanced measurement is turned on. This is a powerful GA4 feature that automatically collects important interaction data like pageviews, scroll depth, outbound link clicks, site search, and video engagement without any extra setup.
  5. Click Create stream.

After clicking, you'll land on the "Web stream details" page. Crucially, this page contains your Tracking ID (also called Measurement ID), which starts with "G-", and the tracking code snippet you'll need for installation.

Step 5: Install the Google Tag on Your Website

Now comes the most important technical step: adding the Google Tag (the G-XXXXXXXX tracking ID) to your website so GA4 can start collecting data. Don't worry, you have several user-friendly options.

GraphedGraphed

Your AI Data Analyst to Create Live Dashboards

Connect your data sources and let AI build beautiful, real-time dashboards for you in seconds.

Watch Graphed demo video

Method A: Use a Website Builder or CMS Integration

This is the easiest method. Most modern platforms like Shopify, Squarespace, and Wix have built-in integrations for Google Analytics.

Example: Shopify

  1. In your Shopify Admin, go to Online Store > Preferences.
  2. Find the "Google Analytics" section.
  3. Simply paste your Google Tag ID (e.g., G-XXXXXXXXXX) into the field and click "Save." Shopify handles the rest.

Example: WordPress (using a Plugin)

  1. In your WordPress dashboard, go to Plugins > Add New.
  2. Search for, install, and activate your chosen Google Analytics plugin.
  3. Follow the plugin’s setup wizard, which will usually prompt you to connect your Google account. It will automatically find your new GA4 property and place the tag on your site.

Method B: Install the Tag Manually

If you're comfortable editing your website’s code, you can install the tag manually. Always create a backup of your theme or files before editing code.

  1. From the "Web stream details" page in Google Analytics, look for the "Install Manually" tab.
  2. Copy the entire JavaScript snippet provided. It will look something like this:
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YOUR_MEASUREMENT_ID"></script>
<script>
  window.dataLayer = window.dataLayer || [],
  function gtag(){dataLayer.push(arguments),}
  gtag('js', new Date()),
  gtag('config', 'G-YOUR_MEASUREMENT_ID'),
</script>
  1. Paste this code immediately after the opening <head> tag on every single page of your website. If you're using a template or theme system (like in WordPress), you'll typically place this in a header.php or similar template file to ensure it applies sitewide.

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 6: Verify That Your Tag is Working

Once you’ve installed the tag, you want to confirm that Google is receiving data. Data can take up to 48 hours to fully populate in standard reports, but there’s a much faster way to check.

  1. In a new browser tab, open your website and click around a few pages.
  2. Go back to your Google Analytics tab and navigate to Reports > Realtime using the left-hand navigation menu.

You should see at least one user (that’s you!) on your website within a minute or two. You can see which pages you are viewing and a map of your location. If you see activity here, congratulations! You have successfully turned on Google Analytics for your website.

Final Thoughts

Following these steps sets you up with a powerful tool for discovering who your audience is, where they come from, and what they do on your site. Once data starts flowing, you can begin exploring the standard reports to build a foundational understanding of your website's performance.

And while Google Analytics is excellent at collecting raw data, figuring out what it all means and building reports can feel like a full-time job. We created Graphed because we believe getting actionable insights should be instant. Once connected, you can use plain English to build real-time dashboards and ask questions like, "Show me my top traffic sources from last month" or "Which blog posts are most popular?" and get clean, professional reports in seconds, letting you skip the learning curve and get straight to the answers.

Related Articles