
To set up GA4 for a website, create a GA4 property in Google Analytics, add a web data stream, install the Google tag through Google Tag Manager or a code snippet, and confirm the Realtime report shows activity. Most sites finish in 15 to 20 minutes, and Google says new data can take up to 30 minutes to appear.
Searching "how to set up GA4 for a website" usually turns into a maze of admin screens, tag managers, and event names that did not exist in Universal Analytics. This guide walks through the setup Google itself documents, plus the checks that catch a broken install before it costs you weeks of missing data. If you are not even sure Google Analytics is free to use in the first place, our guide on whether Google Analytics is free clears that up before you start.
GA4, or Google Analytics 4, is Google's free, event-based analytics platform that replaced Universal Analytics after Google stopped processing UA data on July 1, 2023. A website needs GA4 installed to record which pages visitors see, where they came from, and which actions, like a form submission or a purchase, they complete. Without it, you have no first-party record of how your site performs and no way to prove which marketing channels, including SEO, actually produce results.
GA4 tracks everything as an event rather than the old session-and-pageview pair, which is the biggest structural change from Universal Analytics. A single visit can fire a dozen events: a page view, three scrolls, two outbound clicks, and a form submission. That model is more flexible, but it also means setup choices, like which events to mark as key events, matter more than they did in the old version. If you want the deeper technical differences, our GA4 vs Universal Analytics comparison covers what actually changed.
A few things ready in advance keep the setup from stalling halfway through.
None of this costs money. GA4 standard is free with no credit card required, the same way Google Analytics has always been free at its standard tier.
To create a GA4 property, sign in at analytics.google.com, open Admin, and select Create Property under the account you want to use. Name the property after your website, set the correct reporting time zone and currency, then choose your industry category and business size so Google can tailor the default reports.
A single Google Analytics account can hold up to 2,000 properties, according to Google Analytics Help, so agencies and multi-site businesses do not need a separate account for every domain.
A data stream is the connection GA4 uses to collect data from one source, and a website needs a Web stream. After creating the property, choose Web, enter your site's exact URL, give the stream a name, and decide whether to leave enhanced measurement turned on before you move to tag installation.
Keep that Measurement ID visible. You will paste it into your CMS or reference it in Google Tag Manager in the next step.
You can install the GA4 tag three ways: through Google Tag Manager, by pasting the gtag.js snippet directly into your site's head, or through a CMS integration such as a WordPress plugin or a native Shopify setting. All three deliver the same Measurement ID to the same GA4 property. The difference is how much code access and future flexibility each method gives you.
| Method | Best for | What you do |
|---|---|---|
| Google Tag Manager | Sites that will add more tags over time, like ads or remarketing | Install the GTM container once, then add a GA4 configuration tag inside GTM |
| Manual gtag.js snippet | Simple sites installing only GA4, with direct code access | Paste the full snippet Google provides immediately after the opening head tag on every page |
| CMS plugin or native setting | WordPress, Shopify, Wix, Squarespace, and similar platforms | Enter the Measurement ID into the platform's built-in analytics field or a plugin like Site Kit |
On WordPress, Google's own free Site Kit plugin adds the Measurement ID under Settings, without editing theme files. On Shopify, GA4 has native support inside the admin's Google and YouTube sales channel. On WooCommerce sites, a dedicated integration extension reads the Tag ID from Settings, then Integrations. Whichever platform you use, paste the ID once and every page on the site inherits it.
Enhanced measurement is a set of events GA4 collects automatically once a web data stream is created, without any extra code. Google Analytics Help lists page views, scrolls, outbound clicks, site search, video engagement, and file downloads as the default automatic events. You can turn any of them off individually in the data stream's settings if a particular event does not apply to your site.
Scroll tracking fires once a visitor reaches 90% of a page's vertical height, which is useful for judging whether long guides like this one actually get read. Outbound click tracking fires the moment someone clicks a link pointing to a different domain, which is how you would notice, for example, that a large share of visitors leave through a partner link. None of these events require you to write a single line of custom code.
Confirm GA4 is working by opening Reports, then Realtime, in the GA4 interface and browsing your own website in a separate tab. A working install shows your visit as an active user within a minute or two. For a longer test window, GA4's DebugView shows individual events firing in real time when your browser has the Tag Assistant extension or a debug parameter enabled.
Beyond that first live check, give the full reports time to populate. Google Analytics Help states that data collection may take up to 30 minutes to begin, and some standard reports take a day or two to fully process before every metric looks complete.
If Realtime shows nothing after several minutes, the most common cause is the tag never firing at all. Check that the snippet sits in the head of every page, or that the GTM container was actually published rather than only saved as a draft.
GA4 calls conversions "key events," and it does not choose them for you. You have to tell GA4 which actions on your site count as a win.
Marking the wrong actions as key events, or marking too many of them, muddies every report that follows. Keep the list short and tied to actions that genuinely matter to the business. Once tracking is live and the key events are accurate, our guide on using GA4 for SEO shows how to turn that data into ranking decisions.
Yes. Linking Google Search Console to GA4 is free, takes about two minutes in Admin under Product Links, and adds a Search Console report showing which queries and landing pages bring in organic sessions. Without that link, GA4 tells you what visitors did after they arrived, but not which search terms brought them there in the first place. If you want the full picture of what each tool measures, our comparison of Google Search Console vs Google Analytics lays out where the two overlap and where they do not.
Most broken GA4 installs trace back to a handful of repeatable mistakes.
Getting the foundation right pays off. When we ran a full organic program for B2B SaaS client Swordfish AI, accurate GA4 tracking was how we proved the 400% increase in organic revenue to their leadership team, step by step, rather than as a single end-of-quarter claim.
How do I set up GA4 for my website for free? Create a GA4 property at analytics.google.com, add a Web data stream for your domain, and install the Google tag through Google Tag Manager, a manual snippet, or your CMS. The entire process, including GA4 itself, costs nothing. There is no paid tier required to get standard tracking running.
Do I need Google Tag Manager to set up GA4? No. Google Tag Manager is one of three installation options, not a requirement. A manual gtag.js snippet or a CMS plugin installs GA4 just as well for a simple site. GTM becomes more useful once you plan to add several tags, such as ad conversion tracking, alongside GA4.
How long does it take for GA4 to start showing data? Google Analytics Help states that data collection may take up to 30 minutes to begin after installation. The Realtime report is the fastest way to check, since it can show an active visit within a minute or two, while full standard reports can take a day or two to fully populate.
What is the difference between a GA4 property and a data stream? A property is the overall container for one website or app's data, including its settings, reports, and users. A data stream is the specific connection that feeds data into that property, such as your website's Web stream or a mobile app's iOS stream. One property can hold multiple data streams.
Do I need to set up GA4 if I already have Universal Analytics? Yes, and urgently if you have not already. Google stopped processing data in standard Universal Analytics on July 1, 2023, and retired the 360 version in 2024. GA4 is the only current version of Google Analytics, so any site still relying on old UA data has had no live tracking for years.
What is enhanced measurement in GA4? Enhanced measurement is a set of events, including scrolls, outbound clicks, site search, video engagement, and file downloads, that GA4 collects automatically once you create a web data stream. You can toggle individual events off in the data stream's settings without writing any code.
How do I verify GA4 is tracking correctly? Open Reports, then Realtime, and browse your own site in another tab. Your visit should appear as an active user within a couple of minutes. For a closer look at individual events firing, use GA4's DebugView with the Tag Assistant browser extension enabled.
Should I link Google Search Console to GA4? Yes. Linking the two, free, in Admin under Product Links, adds a Search Console report inside GA4 showing which queries and pages bring in organic traffic. Without it, GA4 shows on-site behavior but not the search terms that led visitors there.
How do I set up conversions, or key events, in GA4? In Admin, open Events, find the event you want to count as a conversion, and toggle Mark as key event. For actions GA4 does not track automatically, create a custom event first through Google Tag Manager or the gtag() function, then mark that new event once it starts appearing.
Can I use GA4 with WordPress, Shopify, or Wix? Yes. WordPress sites commonly use Google's free Site Kit plugin to add the Measurement ID without touching theme files. Shopify has native GA4 support inside its Google and YouTube sales channel. Wix and Squarespace both accept the Measurement ID directly in their built-in marketing integration settings.
Create the property, add the web data stream, and install the tag today, since every day without tracking is data you cannot get back later. Check Realtime the moment you finish, mark your key events within the first week, and link Search Console before you call the setup done. If you want a second set of eyes on the install, or a full audit of what GA4 is already telling you, our Google Analytics audit guide walks through exactly what to check. And once tracking is solid but traffic is not moving, our guide on how to monitor website traffic is the natural next read.
If you would rather have this done and checked by someone who audits GA4 installs for a living, request a free SEO audit from Rankite and we will confirm your tracking is actually measuring what your business needs.
Get a free, no-obligation SEO audit and a 30-minute strategy session. We'll show you exactly where the growth is hiding.
Fill out the form and we'll get back to you within one business day. Prefer email? Write to us directly at contact@rankite.com.