How to Set Up Google Analytics 4 on Your Website (Step by Step)
Not sure who visits your website or what they do there? Learn how to set up Google Analytics 4 in about 20 minutes, with simple steps for WordPress, Wix, Shopify and custom sites.
Know Who Visits Your Website: A Simple Guide to Google Analytics 4
You've built a website. Maybe you're running ads or posting on social media. But do you know how many people visit each day? Where they come from? Which pages they read, and where they leave?
If not, you're guessing. Google Analytics 4 (GA4) takes away the guessing. It's free, it comes from Google, and you can set it up in about 20 minutes. This guide shows you how, one step at a time.

Short Expert Summary
Our expert view: Setting up GA4 takes little time, but most people get stuck on the small details. The two biggest mistakes we see are installing the tracking code twice and using the wrong ID. Get the setup right on day one, then change a few settings and pick two or three reports to check every week. You don't need to understand every chart. You only need to know where your visitors come from and which pages bring you enquiries.
Quick takeaways:
- GA4 is free and works with any type of website
- You need one thing from GA4: the Measurement ID, which starts with "G-"
- Install the code only once, and always test that it works
- Change the data retention setting and connect Search Console early
- Check your reports weekly, not daily
What is Google Analytics 4?
Google Analytics 4 is a free tool from Google that shows how people use your website. It counts your visitors, shows which pages they view, and tells you how they found you: from Google search, social media, ads, or a direct link. It replaced the older Universal Analytics, which stopped collecting data in 2023. So if you see an old ID that starts with "UA-", it no longer works.
What you need before you start
- A Google account (a Gmail account is fine)
- Your website address
- Access to edit your website, or a plugin if you use WordPress
- About 20 minutes
Step 1: Open Google Analytics
Go to Google Analytics and sign in with your Google account. If this is your first time, the tool will guide you through creating an account. Enter your business name as the account name.
Step 2: Create a property
A "property" is just the home for one website's data. Click Admin (the gear icon at the bottom left), then Create Property. Enter your website name, choose your time zone and currency, and follow the next screens. If you're in India, choose India and INR. If you serve the UAE, choose the UAE and AED.
Step 3: Create a web data stream
A "data stream" tells Google Analytics where the data comes from. Choose Web, enter your website address, and give the stream a name. Leave Enhanced measurement turned on. It automatically tracks things like page views, scrolls, outbound clicks and file downloads, so you don't have to set them up by hand. Then click Create stream.

Step 4: Copy your Measurement ID
After you create the stream, you'll see a Measurement ID at the top right. It looks like G-ABC123XYZ. Copy it. This is the one thing you need for the next step.
If you close the page by mistake, go to Admin, then Data Streams, click your web stream, and you'll find the ID again.
Step 5: Add GA4 to your website
There are three common ways. Pick the one that matches your website.
Option A: Use a plugin (easiest for WordPress)
Install Site Kit by Google from your WordPress dashboard. It connects to your Google account and adds the tracking for you. No code is needed.
Option B: Paste the Google tag yourself
In your data stream, click View tag instructions, then choose Install manually. Copy the code and paste it inside the <head> section of every page on your website. Website builders like Wix, Shopify and Squarespace have a settings area where you paste your Measurement ID, so look for "Google Analytics" or "custom code" in your site settings.
Option C: Use Google Tag Manager
Google Tag Manager is a free tool that holds all your tracking codes in one place. Create a new tag, choose Google tag, paste your Measurement ID, and set it to fire on all pages. This is the best choice if you plan to add more tracking later, such as ads or forms.

Choose only one option. If you use a plugin and also paste the code by hand, your visits get counted twice and your numbers will be wrong.
Step 6: Check that it works
Don't skip this step. Open your website in one browser tab. In another tab, open GA4 and go to Reports, then Realtime. You should see yourself as an active visitor within a minute or so.
You can also use Google's free Tag Assistant to check that the tag loads correctly. If nothing shows up, check these three things:
- Did you copy the whole Measurement ID, including "G-"?
- Did you save and publish the change on your website?
- Is an ad blocker turned on in your browser? Try another browser or a phone.
Step 7: Change a few settings early
These small changes save you trouble later:
- Data retention: By default, GA4 may keep detailed event data for only 2 months. Go to Admin, then Data settings, then Data retention, and change it to 14 months if it's available. Then you can compare this year with last year.
- Connect Google Search Console: This shows which Google searches bring people to your site. Set up Google Search Console first, then link it in Admin, under Product links.
- Mark your key actions: Choose what matters most to your business, like a contact form sent or a WhatsApp button clicked, and mark it as a key event. Then GA4 shows you how many visitors take the action you want.

Step 8: Know which reports to check
GA4 has many reports, and they can feel like too much. Start with these three, once a week:
- Traffic acquisition: Where do your visitors come from? Google search, social media, direct, or somewhere else?
- Pages and screens: Which pages do people read the most? Which ones do they leave quickly?
- Key events: How many people took the action you care about?
If you see that most enquiries come from one blog post, write more posts like it. If a page has many visitors but no action, improve that page.
Common mistakes to avoid
- Installing the code twice. This doubles your visits. Use only one method.
- Using an old "UA-" ID. Universal Analytics is gone. Use the "G-" Measurement ID.
- Not testing. Many websites lose weeks of data because the code was never checked.
- Checking the numbers every hour. Small daily changes mean little. Look at weekly and monthly trends.
- Ignoring privacy rules. Depending on your country and your visitors, you may need a cookie notice and a privacy policy. Check the rules that apply to you.
When to ask for help
Basic setup is easy. But some things take more skill, like tracking many forms and buttons, setting up ad tracking, connecting Analytics to a dashboard, or fixing data that looks wrong. If you'd like help, that's part of what we do at ImpliedWeb, along with website design and SEO. Get in touch and we'll be happy to help.
Frequently Asked Questions
Is Google Analytics 4 really free?
Yes. The standard version is free for most websites. Very large businesses may choose a paid version.
Do I need to know coding to install it?
No. If you use WordPress, Wix, Shopify or Squarespace, you can set it up with a plugin or a settings box. Only custom websites need you to paste a small piece of code.
How long does it take to show data?
The Realtime report can show you within a minute or two. Other reports can take 24 to 48 hours to fill in.
Can I see data from before I installed GA4?
No. GA4 only counts visits from the day you install it. That's why it's best to set it up as early as possible.
What is the difference between GA4 and Google Search Console?
GA4 shows what visitors do on your website. Search Console shows how your website appears in Google search and which searches bring people to it. They work best together.
Helpful Links
- Google Analytics: create your account and property
- Google Tag Manager: manage your tracking codes in one place
- Site Kit by Google: the easy WordPress plugin
- Tag Assistant: check that your tag works
- Google Search Console: see which searches bring visitors
- Google Analytics Help Center: official guides and updates
Final thoughts
You don't need to be a data expert to use Google Analytics. Set it up once, check that it works, and look at a few simple reports each week. Within a month, you'll know which pages work, which don't, and where your best visitors come from. That's how you make better decisions for your website, and for your business.