Google Analytics 4, usually called GA4, is the free analytics tool from Google that shows who visits your website, where they come from and what they do there. Setting it up takes four steps: create a Google Analytics account, create a GA4 property, add a web data stream, and install the Google tag on your website. Once the tag is in place, data can take up to 30 minutes to appear, and you can check it in the Realtime report.
Key takeaways
- Google Analytics 4 is free, and setup is four steps: account, property, data stream, Google tag.
- You need the Editor role to create a property, and a Google account to sign in.
- The Google tag is identified by a Measurement ID that starts with “G-“.
- Install the tag through your platform field, manually after the opening head tag, through Google Tag Manager, or through Site Kit on WordPress.
- Data can take up to 30 minutes to appear. Check Realtime to confirm it is flowing.
What you need before you start
Three things, and nothing else. First, a Google account, because Analytics signs in with Google. Second, access to your website: the ability to add code to your pages, a field in your platform settings, or permission to install a plugin. Third, the right role in Analytics. You need to be a Viewer or above at the account level to create an Analytics account, and you need the Editor role to add a property. If you created the account yourself, you automatically have the Editor role. If someone else owns the account, ask them to give you Editor access before you start.
Google suggests a separate Analytics account when a website belongs to a separate business. Most small sites need only one account, with one property per website inside it. An account can hold up to 2,000 properties.
Step 1: Create a Google Analytics account
Skip this step if you already have an Analytics account and want the new site inside it. Otherwise, go to analytics.google.com and sign in with your Google account. If this is your first time using Google Analytics, click Start Measuring. Then go to Admin, click Create, and select Account. Give the account a name, and set the data-sharing settings to control which data you share with Google. Click Next, and Analytics moves on to the first property.
Step 2: Create a Google Analytics 4 property
A property is the Analytics record for one website or app, and all the reports for that site live inside it. If you are continuing from creating an account, skip to the name field. Otherwise, in Admin, click Create and select Property. Enter a name for the property, and select the reporting time zone and the currency. If a visitor reaches your site on a Tuesday in their time zone but it is still Monday in yours, the visit is recorded as having occurred on Monday. Changing the time zone later only affects data going forward, and Google warns it can cause a flat spot or a spike in reports. Do not change the property time zone more than once per day.
Click Next, then select your industry category and business size. Click Next again and choose how you intend to use Google Analytics, for example “Generate more leads”. Google tailors the default reports to that answer, so pick the objective that matches what the site is actually for. Click Create and, if you are setting up a new account, accept the Analytics Terms of Service and the Data Processing Amendment.
Step 3: Add a web data stream
A data stream is the connection between your property and one website or app. In Admin, under Data collection and modification, click Data Streams, then click Add stream and choose Web. Enter the URL of your primary website and give the stream a name. You will see the option to enable or disable enhanced measurement. Leave it enabled. Enhanced measurement automatically collects page views and other events, and once the data stream exists you can go back and disable the individual events you do not want to collect. Click Create stream.
Step 4: Install the Google tag on your website
The Google tag is the small piece of code that sends visit data from your website to your GA4 property. Pick the route that fits how your site is built.
Option A: Enter your Google tag ID in your platform
Many website builders and content management systems have a built-in field for Google Analytics. First find your Google tag ID. In Admin, under Data collection and modification, click Data streams, click the data stream for your website, and under Stream Details copy the Measurement ID. It starts with “G-” for a Google Analytics account. Then paste that ID into the Google Analytics field your platform provides. Google lists native instructions for platforms including Shopify, Wix, Squarespace, HubSpot, Drupal and WooCommerce, so follow your own platform help page for where the field sits.
Option B: Install the tag manually
If your platform has no Analytics field, paste the tag into your pages yourself. You need access to the HTML of your web pages; if you cannot do this, ask your web developer. In Admin, under Data collection and modification, click Data streams, click Web, then click the data stream for your website. Under Google tag, click View tag instructions. On the installation instructions page, select Install manually. You will see the JavaScript snippet for your account. Paste the whole Google tag immediately after the opening head tag on each page of your website.
Option C: Use Google Tag Manager
If your site already runs through Google Tag Manager, install the Google tag there instead of pasting code into pages. It suits sites where tags are already managed centrally, because the tag can be added, changed or removed without editing the site itself.
Option D: WordPress with the official Site Kit plugin
On WordPress, the simplest route Google documents is Site Kit by Google, the official free WordPress plugin from Google. Log in to your WordPress site and make sure it is publicly accessible. Go to Plugins, then Add New, search for “Site Kit by Google”, click Install Now, then go to Installed Plugins and click Activate. Once it is active, click Site Kit, tick “Connect Google Analytics as part of your setup”, and click Sign in with Google. Select the Google Account that holds your existing Analytics property, grant permission, click Proceed to verify site ownership, click Allow, and click Add site to add the site to Search Console. Then click Set up Google Analytics, choose your pre-existing property, and click Complete Setup. If you cannot install plugins on your WordPress account, Google documents an alternative route through the WordPress Editor instead.
Verify Google Analytics 4 is collecting data
Data collection may take up to 30 minutes to begin. After installing the tag, wait, then open the Realtime report in your property. Visit your own website in a separate browser tab and watch for your visit to appear in Realtime. If it appears, the tag is installed and data is flowing.
If nothing appears after 30 minutes, work through the short list. First, check the property selector: are you looking at the property you created? Second, check the tag itself: is the Measurement ID in your platform field or your code the same “G-” ID shown in the stream details? Third, check coverage: is the tag on every page, or only on the homepage? A site-wide install covers all pages; a manual paste covers only the pages you edited. Fix the mismatch, wait again, and re-check Realtime.
Five setup mistakes to avoid
| Mistake | What happens | What to do instead |
|---|---|---|
| Tag on only some pages | Only those pages report visits | Use a site-wide install method |
| Wrong property selected | Data lands in the wrong place | Check the property selector first |
| Changing the time zone often | Flat spots or spikes in reports | Set it once, change it rarely |
| Expecting instant data | Empty reports cause false alarms | Wait up to 30 minutes, then check Realtime |
| Turning off enhanced measurement | Automatic events stop collecting | Leave it on, disable single events later |
What to do after setup
Once Realtime shows visits, the setup is done, but three short checks make the data useful. First, open the reports and confirm they match the business objective you chose when creating the property, since Google tailors the default reports to that answer. Second, review enhanced measurement and switch off any automatic events that do not apply to your site. Third, decide which visitor actions matter most to the business, such as purchases, form submissions or sign-ups, and plan to measure them as conversions once you are ready.
If you are working through search visibility at the same time, the next useful step is a site audit against the basics. Our Local SEO Checklist covers that in order. Store owners can also work through the Shopify SEO Guide, and the SEO and Digital Marketing archive holds the rest of our guides in this category. For more about who writes these guides, see the About Us page.
Frequently asked questions
Is Google Analytics 4 free?
Yes. Google describes Analytics as a way to get insights on your website or app at no cost. Creating an account, a property and a data stream costs nothing.
How long does it take for data to appear in Google Analytics 4?
Data collection may take up to 30 minutes to begin after you install the Google tag. Use the Realtime report to check that visits are arriving before you judge the setup.
What is the Google tag ID, and where do I find it?
The Google tag ID is the Measurement ID for your web data stream, and it starts with “G-“. Find it in Admin, under Data collection and modification, click Data streams, click your stream, and read it under Stream Details.
Do I need a plugin to use Google Analytics 4 on WordPress?
No. You can paste the Google tag into your pages manually, use a plugin such as MonsterInsights, or use Google Tag Manager. Site Kit by Google is the official free plugin from Google.
What is enhanced measurement in Google Analytics 4?
Enhanced measurement is the automatic event collection that Google switches on when you create a web data stream. It collects page views and other events without extra code. You can disable individual events later from the data stream settings.
Why can I not see a Data Streams option in my Analytics account?
You are probably looking at a Universal Analytics property instead of the Google Analytics 4 property you created. Use the property selector, or Admin, to switch to the new GA4 property. The Data Streams option appears there.


