How to add Google Analytics to a website

Vimal Kumar
Vimal Kumar·
How to add Google Analytics to a website
Interactive demo powered by Supademo

1. Open Google Analytics, click Admin

2. Next, select "Data Streams" under the Data Collection and Modification tab

3. Select the Web option to add Google Analytics to your website.

4. Next, set up your web data stream and fill in the basic info

5. Video Step

(

Play Now

)

6. Once that's done, click here

7. Click on this element.

8. Copy the Google Tag code snippet

9. Paste the code snippet in the code of every page of your website, immediately after the element. Don’t add more than one Google tag to each page.

10. Create a Supademo in seconds

This interactive demo/guided walkthrough on How to add Google Analytics to a website was created using Supademo.


How to add Google Analytics to a website : Step-by-Step Guide

Start by logging into your Google Analytics account. Once you’re in, find and click on the Admin button located in the bottom-left corner to access the settings where you can manage your data streams and account configurations.

1

In the Admin panel, look for the Data Collection and Modification section. Under this, select Data Streams. This area lets you manage and configure the different sources from which Google Analytics collects data.

2

When you see the options for data stream types, choose the Web option. This will enable you to add your website as a source for tracking and analyzing visitors through Google Analytics.

3

Now, you’ll need to configure your web data stream. Enter the basic details such as your website’s URL and name, so Google Analytics can accurately monitor traffic and engagement on your site.

4

If you prefer a visual walkthrough, watch this quick tutorial video to see the steps in action and better understand the setup process.

(

Play Now

)

5

After completing the setup, proceed by clicking the button shown here to access your tracking details and continue with the implementation.

6

Locate and click on the highlighted element to reveal your website’s tracking code snippet, which you will need to embed in your site.

7

Copy the Google Tag code snippet carefully. This snippet is essential to link your website with Google Analytics for real-time data tracking.

8

Paste the copied code into the HTML of every page on your website, placing it immediately after the opening <head> tag. Make sure to add only one Google tag per page to avoid any tracking conflicts.

9

With the tag added, your Google Analytics setup is complete. Now, you can create a Supademo in just seconds to showcase and test your analytics setup effectively.

10

Create your own interactive demos in < 5 mins with Supademo

You can create your own interactive product demo in minutes using Supademo. Drive growth, scale enablement, and supercharge product-led onboarding with Supademo. Sign up for free here with no credit card required.


FAQs

Commonly asked questions about this topic.

What is Google Analytics and why should I add it to my website?

Google Analytics is a tool that tracks and reports website traffic, helping you understand user behavior. Adding it to your website allows you to analyze visitor data, improve user experience, and make data-driven decisions to grow your online presence effectively.

How do I access Google Analytics to start the setup?

To begin, log in to your Google Analytics account. Locate and click the Admin button at the bottom-left of the dashboard. This opens the settings panel where you can manage accounts, properties, and data streams for setup.

What is a Data Stream in Google Analytics?

A Data Stream represents a data source for your Google Analytics property. It allows tracking of user interactions on platforms like websites, iOS or Android apps. Adding a Web Data Stream enables analytics tracking for your website.

Where do I find the Google Tag code snippet?

After setting up your web data stream, navigate to the tracking section in the Admin panel. Click on the indicated element to reveal the Google Tag code snippet, which you can then copy and embed in your website’s HTML.

Where should I place the Google Analytics code on my website?

The Google Tag code snippet should be pasted immediately after the opening <head> tag on every page you want to track. Avoid placing multiple Google tags on the same page to ensure accurate data collection.

Can I add Google Analytics to a single page or do I need to add it to all pages?

For comprehensive tracking, it’s best to add Google Analytics to all pages of your website. This ensures you gather complete data on visitor behavior as they navigate through different sections.

How soon will Google Analytics start showing data after installation?

Google Analytics typically begins collecting data within a few minutes of installation, but it may take up to 24 hours for reports to show comprehensive and processed data in your dashboard.

Can I use Google Analytics with any website platform?

Yes, Google Analytics can be added to websites built on most platforms, including WordPress, Shopify, Wix, and custom-built sites, as long as you can access and edit the HTML to insert the tracking code.

Is it necessary to have coding skills to add Google Analytics?

Basic familiarity with editing website code is helpful but not mandatory. Many platforms offer plugins or built-in tools to add Google Analytics without manual code editing. For custom sites, copying and pasting the snippet as shown is straightforward.

What is Supademo and how does it help with Google Analytics setup?

Supademo is an interactive demo platform that creates guided walkthroughs. It helps you understand and implement setups like Google Analytics by providing step-by-step, interactive tutorials for smooth learning and onboarding.

Vimal Kumar

Vimal Kumar

Product Operations Associate

Vimal Kumar helps build and grow Supademo’s team and GTM efforts, with a focus on figuring out growth levers and improving product traction.

More from the blog

How to Add Products to Shopify

How to Add Products to Shopify

Learn step-by-step how to add products to your Shopify store effortlessly, including tips on product details, images, pricing, and inventory management to boost your online sales.

Vimal Kumar
Vimal KumarDec 17, 2025
How to Deactivate Your Shopify Store

How to Deactivate Your Shopify Store

Learn step-by-step how to deactivate your Shopify store easily, including important considerations and tips to pause or close your shop without losing data.

Vimal Kumar
Vimal KumarDec 17, 2025
How to Remove 'Powered by Shopify'

How to Remove 'Powered by Shopify'

Learn how to easily remove the 'Powered by Shopify' text from your online store with step-by-step instructions and tips to customize your Shopify storefront.

Vimal Kumar
Vimal KumarDec 17, 2025
How to Create a Shopify Account

How to Create a Shopify Account

Learn step-by-step how to create a Shopify account quickly and easily, set up your online store, and start selling your products in no time.

Vimal Kumar
Vimal KumarDec 17, 2025
How to Create a Stripe Account

How to Create a Stripe Account

Learn how to create a Stripe account quickly and easily with our step-by-step guide, perfect for beginners looking to start accepting online payments.

Vimal Kumar
Vimal KumarDec 17, 2025
How to Contact Stripe Support

How to Contact Stripe Support

Learn the easiest ways to contact Stripe support for quick assistance with your payment processing, account issues, and technical questions.

Vimal Kumar
Vimal KumarDec 16, 2025