What is Google Analytics 4?
Google Analytics 4 (GA4) is Google's free tool for measuring what people do on your website or app. It counts visits, shows where they came from, and records the actions that matter to your business, like a sent form or a purchase. This Google Analytics 4 setup guide walks you through creating a property, installing the tag, and checking the numbers before you make decisions with them.
GA4 replaced Universal Analytics, which stopped processing data for standard properties in July 2023. If your old reports went quiet that summer, that's why. GA4 doesn't carry over your old history, so the sooner it's running, the sooner you have a full year to compare against.
How GA4 differs from the old Google Analytics
GA4 records everything as an event. A page view is an event, a scroll is an event, and a purchase is an event. That makes it more flexible, but the reports look different from what you may remember.
- Events instead of hits: Every interaction is an event with details attached, such as the page or the value of a sale.
- Key events instead of goals: You mark the actions you care about as key events. Google called them conversions until 2024, when it renamed them. "Conversions" now means what you count in Google Ads.
- Web and app in one property: A single property can take data from your website and your mobile app, each through its own data stream.
What you need before you start
Setup takes under an hour for most small business sites. Have these ready first:
- A Google account your company owns: Don't let a freelancer or agency create the property under their own login. Add them as users instead.
- Access to your site: That means your CMS admin, your theme files, or your Google Tag Manager container.
- A short list of the actions that matter: Pick two to four, such as a contact form, a booked call, or a purchase.
- Your reporting time zone and currency: Use the ones your business runs on, not your developer's.
How to set up Google Analytics 4, step by step
Step 1: Create the account and property
- Go to analytics.google.com and sign in with the company account.
- If you've never used Analytics, click Start measuring to create an account. Otherwise open Admin (the gear icon, bottom left), click Create, then Property.
- Name the property after your business or site. Set the reporting time zone and currency.
- Answer the questions about your business and your objectives. Your answers shape the default reports in the left-hand menu.
The time zone matters more than it looks. It decides when each day starts in your reports, so a wrong setting splits your busiest evening across two days.
Step 2: Create a web data stream
When Analytics asks you to choose a platform, pick Web. Enter your site's address and a stream name, such as "Main website."
Leave Enhanced measurement on. It tracks page views, scrolls, outbound clicks, site search, video engagement, and file downloads without extra code. It can also track form interactions, but that part is unreliable on many sites. Don't count on it for leads.
Before you leave this screen, copy the Measurement ID. It starts with G- and you'll need it in the next step.
Step 3: Install the Google tag
The Google tag is the snippet that sends data from your site to Analytics. Older tutorials call it the Global Site Tag, its previous name. Pick one of these three methods, and only one.
Option A, your platform's integration: Most site builders have one built in. On Shopify it's the Google & YouTube app, and on WordPress the Site Kit by Google plugin works well. Other builders usually have a settings field where you paste the Measurement ID, which is the easiest route for most small businesses.
Option B, paste the code yourself: In the data stream, open the tag installation instructions and copy the code. Paste it right after the opening <head> tag in your site's shared header template, so it loads on every page.
Option C, Google Tag Manager: Create a new tag, choose Google tag as the type, and enter your Measurement ID. Set the trigger to fire on all pages, test it in Preview mode, then publish the container. Tag Manager is worth it if you'll add more tracking later, such as ad pixels. If you plan to run ads, it also makes paid media campaigns easier to measure.
Not sure which to pick? This is how the three compare:
| Method | Best for | Watch out for |
|---|---|---|
| Platform integration | Shopify, WordPress and site builders with a built-in setting | Less control over extra events, and an easy double install if someone also pastes the code |
| Paste the code | Simple sites with one shared header template | Every new tracking need means editing the site's code |
| Google Tag Manager | Sites that will add ad pixels or custom events later | One more tool to learn, and one more login your company should own |
Step 4: Mark your key events
Key events are the actions that make you money. Mark only those. If every scroll counts as a key event, the report stops meaning anything.
If your contact form sends people to a thank-you page, you can turn that page view into its own event:
- In Admin, open Events and click Create event.
- Name it something clear, like
generate_lead. - Add two conditions:
event_nameequalspage_view, andpage_locationcontains/thank-you. - Save it, then go to Key events and add
generate_leadas a new key event.
Online stores have it easier. The official Shopify and WooCommerce integrations usually send a purchase event with the order value. Check it's there, then mark it as a key event.
Step 5: Change the settings most people miss
A few defaults are worth changing on day one:
- Data retention: Explorations keep user-level data for two months by default. Change it to 14 months under Admin, in the data retention settings. Standard reports aren't affected.
- Internal traffic: Define your office IP address in the data stream's tag settings. Then switch the internal traffic filter from Testing to Active under Data filters.
- Unwanted referrals: If buyers pay through PayPal or another gateway and then return to your site, list that domain as an unwanted referral. Otherwise GA4 credits the sale to the gateway instead of the ad or search that brought the buyer.
- Product links: Link Search Console to see your search queries next to your traffic. Link Google Ads if you run ads, so your key events can feed your campaigns. Our beginner's guide to Google Ads covers the campaign side.
When you need custom events and dimensions
Enhanced measurement and a few key events cover most small business sites. Add custom tracking only when you have a question the standard reports can't answer, such as which pricing plan a visitor picked or which of two buttons they clicked.
That takes two parts. First, your site or Tag Manager sends an event with a detail attached, called a parameter, such as plan_name. Second, you register that parameter as a custom dimension in Admin, so it shows up in your reports. Google's guide to custom dimensions and metrics covers the steps and limits. Allow a day or two after registering it before the data appears in reports.
How to check that GA4 is working
Don't wait a month to find out the tag never fired. Run these checks the day you install it:
- Realtime report: Open your site on your phone, off the office Wi-Fi. You should show up in the Realtime report within a minute or two.
- DebugView: Turn on Tag Manager's Preview mode or the Tag Assistant browser extension. Then open DebugView in Admin and watch your events arrive one by one.
- Test every key event: Send a real form or place a test order. Confirm the event shows up with the right name.
- Look for double counting: If Tag Assistant shows two Google tags, or every visit logs two page views, you've installed the tag twice.
Standard reports can take a day or two to fill in. Empty reports on day one are normal, but an empty Realtime report isn't.
Common GA4 setup mistakes
These are the problems we see most often when we review someone else's account:
- The tag runs twice, usually once from a plugin and once pasted by hand, so every number doubles.
- Someone else owns the property: When the freelancer leaves, so does your data.
- Wrong time zone or currency, set by whoever built the site.
- Retention left at two months, so last season is gone when you want to compare it.
- Too many key events: Scrolls and page views marked as key events make your results look better than they are.
- Nobody looks at it: Set a monthly reminder to check traffic sources and key events. If you're working on search traffic, our guide to how SEO works explains what to watch in Search Console alongside GA4.
For anything not covered here, the Google Analytics Help Center has Google's own instructions, and it reflects the current menu names.
Want us to check your setup? Send us your site and we'll tell you what's missing. If you'd also like to see what your competitors do in search, ask for a free competitor snapshot.
Frequently asked questions
How do I set up Google Analytics 4 step by step?
Create a property at analytics.google.com with your time zone and currency, then add a web data stream and copy the Measurement ID. Install the Google tag through your site builder, in your header template, or with Tag Manager. Then mark your key events, such as form submissions or purchases. Finally, check the Realtime report to confirm your own visit shows up before you trust the numbers.
What is a key event in GA4?
A key event is an action you've marked as important to your business, such as a lead form, a booked call, or a purchase. Google called these conversions until 2024, when it renamed them in Analytics. Key events show up across your reports, and you can import them into Google Ads. Keep the list short so the numbers stay meaningful.
How do I know if GA4 is working?
Visit your site from your phone and open the Realtime report, where your visit should appear within a minute or two. For more detail, turn on Tag Manager's Preview mode or Tag Assistant and watch events arrive in DebugView. Then test each key event by sending a real form. Standard reports can take a day or two, so don't judge them on day one.
Is Google Analytics 4 free?
Yes. The standard version of Google Analytics 4 costs nothing, and it's enough for nearly every small and mid-sized business. Google also sells a paid version, Analytics 360, aimed at large companies that need higher data limits and service agreements. You don't need it to track a business website, a store, or a lead form properly.
Do I need Google Tag Manager for GA4?
No. You can install the Google tag through your site builder's integration or by pasting it into your header. Tag Manager helps when you plan to add more tracking later, such as ad pixels or custom click events. For a simple site, a clean Google Analytics 4 setup without Tag Manager is perfectly fine.
How long does GA4 take to show data?
The Realtime report shows visits within a minute or two of the tag going live. Standard reports usually take up to a day or two to process. Comparisons take longer. You need several weeks of data before trends mean anything, and a full year to compare one season with the same season last year.
