Hello Sunil
set-up-google-analytics-guide-feature-image

How to Set Up Google Analytics 4: A Step-by-Step Guide

You can toggle these measurements on or off by selecting the small “Settings” icon in the bottom right corner.

Once you click “Create stream”, you will be given both a unique measurement ID and a unique stream ID, as seen below.

Google Analytics data stream details screen

Remember, Google Analytics 4 uses Measurement ID. Older versions use Tracking ID.

Step 3: Start Collecting Data From Your Website

Your data stream is the gateway into Google Analytics portal. But to actually collect the data itself from your website and send it there, you need to add an Analytics tag — a small snippet of code — to your web pages.

Click the “Global site tag (gtag.js)” row. Here you can see a code snippet. The code snippet is a script to allow Google to measure data on your site.

Google Analytics Global Site Tag screen

Copy the code snippet. Locate the head tag in your HTML. Paste the code snippet just below the head tag. Save and publish the code.

For WordPress you can use Insert Headers and Footers plugin to insert the code under head section of the website.

Headers and Footers plugin used to insert Google Analytics Code under head section

Step 4: Test That It Works

Ensure that you have successfully saved and published the code snippet with the correct Measurement ID.

Open the URL for the site you have connected to the data stream. Click on “Real time” on the menu to the left. Confirm that you see yourself as an active user.

Google Analytics realtime screen

Congrats. You have successfully enabled Google Analytics for your site!

Once it’s done, wait for a few hours, as the installation can take up to 48 hours to fully activate.

Conclusion

This blog has shared the easy steps of setting up a Google Analytics account and integrating it with your website.

You can refine your site’s data analysis by editing Google Analytics’ configuration options. These configurations will allow you to analyze traffic and help improve conversion rates. In case of any questions, do not hesitate to ask us for advice in the comment section.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Similar articles you may like

Sunil Pradhan

Hi there 👋 I am a front-end developer passionate about cutting-edge, semantic, pixel-perfect design. Writing helps me to understand things better.

Add comment

Stay Updated

Want to be notified when our article is published? Enter your email address below to be the first to know.

Sunil Pradhan

Hi there 👋 I am a front-end developer passionate about cutting-edge, semantic, pixel-perfect design. Writing helps me to understand things better.