How to Install Google Analytics (Video Tutorial)

How to install Google Analytics GA4 on a website

How To Install Google Analytics (GA4) on Your Website (Video Tutorial)

The ability to track what’s happening when a user visits your site is pivotal to understanding its performance. One of the best ways to get this data is by using Google Analytics. This free tool, now updated to GA4, offers all sorts of insights into your website’s usage. Including where traffic goes, which pages get the most views, how long people stay on your website, and where they leave. Having access to this sort of information can help with optimising your site, and marketing efforts. Google Analytics is a really powerful tool, but getting it working on your site can be tricky.

Installing Google Analytics is not complicated. In this video tutorial, I’ll show you how to install Google Analytics 4 on your website. The tutorial covers everything you need to know, from creating an account to installing Google Analytics tracking code on your site. It shows you how to install GA4 on a WordPress site and an HTML website.

What We’ll Cover

  • How to create a Google Analytics account
  • How to find your tracking code
  • How to get your tracking code installed on a WordPress website
  • How to install Google Analytics on a HTML website

Summary

To make things a little simpler, here’s a written summary of how you can install Google Analytics on your website.

Installing Google Analytics on WordPress

Here’s a very brief summary of how to install Google Analytics 4 on a WordPress powered website.

Step 1 Sign Up with Google Analytics: Create a Google Analytics account if you don’t already have one. Sign in at the Google Analytics website using a Google account.

Step 2: Set Up Your Google Analytics Account: After signing up, set up your Google Analytics account by entering details like account name, property name, location, time zone, and currency. Then, fill in your business information and select the desired Google Analytics features.

Step 3: Set Up Your Data Stream: Choose ‘Web’ as your stream type and enter your website URL. Then, name your stream and click ‘Create Stream’.

Step 4: Install Google Site Kit Plugin on WordPress: Log in to your WordPress dashboard and go to Plugins > Add New. Search for ‘Site Kit by Google‘, install, and activate the plugin.

Step 5: Set Up Site Kit: After activating Site Kit, start the setup process and sign in with the Google Account you used for Google Analytics. Grant necessary permissions for Site Kit to access your website data.

Step 6: Connect to Google Analytics: In Site Kit, connect to Google Analytics by clicking ‘Connect Service’ under Analytics, and then configure your analytics details.

Installing Google Analytics in HTML

To install Google Analytics in an HTML website, first follow steps 1, 2, and 3 from above. They’re the same regardless of which platform you want to use. Then copy your complete Google Analytics tracking code, it should look something like this:

Take this code, and paste it into each individual HTML page for your website. You’ll need to paste it immediately after the opening <head> tag.

Once you’ve done that, upload your updated pages to your sites server, and you’ll be good to go.

Enjoyed this article?

If you'd like to receive my newsletter, you can sign up below. You'll be joining a friendly bunch that all get the latest news and insights, direct to their inbox.

Request a quote

Breathe new life into your site or get a new one off the ground. Get in touch to request a quote today.

Start a conversation about your project