Technical SEO

How to Set Up Google Analytics 4 on Your Website

Create a GA4 property, add a web data stream, install the Google tag once, and link Search Console so search queries sit next to on-site data.

FindSEO5 min read

A black computer keyboard sitting on a dark desk in a modern workspace, with a mouse and a notebook just out of focus beside it.

Photo: Shixart1985 / Wikimedia Commons (CC BY 2.0)

In this article
  1. How do you create a GA4 property?
  2. How do you add a web data stream?
  3. How do you install the Google tag?
  4. How do you connect Search Console?
  5. What does Enhanced measurement collect?
  6. Who should have access, and when will reports fill in?
  7. A GA4 setup checklist
  8. The bottom line

To set up Google Analytics 4, create a GA4 property, add a web data stream for your site, and install the Google tag on every page. You can paste the tag into the site head, install it through Google Tag Manager, or use your website builder's integration. Then link the property to Google Search Console so search queries sit alongside organic traffic and conversions.

Analytics is how you see what people do after they reach the site: which pages they open, where they drop off, and which channels send them. It does not replace Search Console. Search Console shows how you appear in Google Search; Analytics shows what happens on the site.

This guide follows Google's current setup documentation for a website.

How do you create a GA4 property?

You need the Editor role on a Google Analytics account to add a property. If you created the account, you already have it.

Google's setup guide and steps for adding a property describe this flow:

  1. Open Google Analytics and go to Admin.
  2. Click Create, then select Property.
  3. Enter a property name (your business or website name), and choose the reporting time zone and currency. For an Australian business, that is usually Australia/Melbourne or Australia/Sydney, and Australian dollars. Google says a visit is recorded in your property's time zone, not the visitor's, and that changing the time zone later only affects new data. It also says not to change the time zone more than once a day.
  4. Click Next, then choose your industry category and business size.
  5. Click Next, then select how you intend to use Analytics. Google uses this to tailor the default reports (for example, lead generation).
  6. Click Create. If this is a new account, accept the Analytics Terms of Service and the Data Processing Amendment.

A property can hold data streams from a website and, if you have them, iOS and Android apps.

Diagram of the Google Analytics structure: an account for the company, a property with the reporting time zone and currency, and one web data stream that supplies the Measurement ID for the live website.
One account, one property, one web stream is the usual starting point for a single website.

Google's account structure guidance recommends one web data stream per property, plus one app stream each for iOS and Android when you have apps.

A woman typing on a laptop at a home office desk, with a notebook and other work papers beside the computer.
Create the property with the time zone and currency you report in, then add a web data stream. Photo: Shixart1985, CC BY 2.0, via Wikimedia Commons.

How do you add a web data stream?

  1. If you are not still in the setup wizard, go to Admin, and under Data collection and modification click Data Streams, then Add stream.
  2. Click Web.
  3. Enter the URL of your primary website (for example, example.com) and a stream name such as "Example website".
  4. Leave Enhanced measurement on unless you have a reason to turn it off. Google says it automatically collects page views and other events, and that you can disable individual events later, so it recommends enabling it now.
  5. Click Create stream.

You will see a Measurement ID starting with G-. That ID is what the Google tag uses to send data to this stream.

How do you install the Google tag?

Google's guide to setting up the Google tag walks through the official options. In Admin, open Data Streams, select your web stream, then open the Google tag settings and choose Installation instructions.

  • Install manually. Copy the full snippet and paste it immediately after the opening head tag on every page. Use the snippet Analytics shows you, not a copied tag from another property.
  • Install with a website builder or CMS. Choose your platform from the instructions and follow the steps for WordPress, Shopify, Wix or the other listed integrations, so you do not have to edit every template by hand.
  • Install with Google Tag Manager. If you already use Tag Manager, add the Google tag (or the GA4 tag) that uses this Measurement ID, and publish the container. Do not also paste the Analytics snippet, or you will measure visits twice.

You can confirm the tag is firing with the Realtime report: load the site in a browser and check that your visit appears. Google also provides tag troubleshooting steps if events do not arrive.

Three official ways to install the Google Analytics 4 tag: paste the Google tag in the head of every page, use a website builder or CMS integration, or publish it through Google Tag Manager. Only use one method so visits are not counted twice.
Pick one install method. Running the snippet and a Tag Manager tag together will double-count.

How do you connect Search Console?

Once the tag is collecting data, link Search Console so you can see Google Search queries and landing pages next to on-site behaviour.

Google's Search Console integration guide says you need Editor access in Analytics and verified ownership of the Search Console property. In Admin, open Product links, then Search Console links, and click Link. Choose the Search Console property you manage, select the matching web data stream, and confirm.

After the link is in place, Google says you should publish the Search Console report collection from Reports, then Library, so the Google Organic Search Queries and Google Organic Search Traffic reports appear in the left-hand navigation.

This pairing is also the foundation for later work: SEO goals and KPIs, measuring SEO return, and conversion tracking in Google Ads if you run paid search.

A person writing in an open notebook with a pen, sitting at a desk with an open laptop and a second notebook in a bright, modern workspace.
Check the Realtime report after install, then link Search Console so queries and on-site data sit together. Photo: Shixart1985, CC BY 2.0, via Wikimedia Commons.

What does Enhanced measurement collect?

Google's enhanced measurement documentation explains the events a web stream can collect automatically once the tag is installed. Page views are included. You can also collect scrolls, outbound clicks, site search, video engagement, file downloads and form interactions, and turn individual events off in the stream settings if they are not useful.

Leave the defaults on for a first setup unless you already know a particular event will clutter the reports. You can add more specific events later, such as a form thank-you or a purchase, when you are ready to measure SEO return or to import key events into Google Ads.

Who should have access, and when will reports fill in?

Grant access in Admin rather than sharing a password. Google's guide to adding users covers the roles, from Viewer up to Administrator and Editor. Give an agency the lowest role that lets them do the work, and keep at least one Administrator account under the business's own email, so you still have access if the agency changes.

The Realtime report is the right place to confirm the tag the same day. Standard reports are processed later, so an empty report a few hours after install is not, by itself, a sign that the tag failed. If Realtime stays empty, use Google's tag troubleshooting steps rather than creating a second property.

Use a separate property or stream for a staging site, so test traffic does not mix with the live data you will report on.

A GA4 setup checklist

  • A GA4 property exists in the right Analytics account, with the correct time zone and currency.
  • One web data stream points at the live site, and Enhanced measurement is on (or adjusted on purpose).
  • The Google tag is installed once, on every page, through the snippet, a CMS integration or Tag Manager.
  • The Realtime report shows your own visit.
  • Search Console is linked, and the Search Console reports have been published from the Library.
  • Access for colleagues or an agency is granted in Analytics Admin, not by sharing a login.

The bottom line

GA4 is the official place to measure what people do on your site. Create one property, add one web stream, install the Google tag a single time, and link Search Console. After that, spend your energy on events that match your business goals, not on extra properties or duplicate tags. Once Search Console is linked, you can also monitor Core Web Vitals in the same property. If you want help joining this up with reporting and advertising, compare technical SEO services or get matched with an agency.

FAQs

Do I need Google Analytics and Search Console?

They answer different questions. Search Console shows how your pages appear in Google Search, including queries and indexing. Analytics shows what people do on the site after they arrive. Google's own documentation explains how to link the two so you can see Search queries next to on-site behaviour.

What is a GA4 data stream?

A data stream is the source of data flowing into a property, such as a website or an app. Google recommends one web data stream per property for the website journey, and separate iOS and Android streams if you have apps.

Where do I find my Google Analytics Measurement ID?

In Admin, open Data Streams, select your web stream, and look for the ID that starts with G-. The Google tag snippet and the Tag Manager tag both use this ID.

Should I install the Google tag and Google Tag Manager together?

No. Use one method. If Tag Manager is already on the site, add Analytics there and publish the container. Pasting the Analytics snippet as well will send the same visits twice.

Why should I set the time zone carefully?

Google says visits are recorded in the property's time zone, not the visitor's, and that a time zone change only affects data going forward. A change can also create a flat spot or a spike in the charts, so it recommends changing the time zone no more than once a day.

Sources

Ready for help with SEO?

Compare SEO-only agencies near you, with client reviews checked by a person, or tell us what you need and get matched.

Technical SEO

How to Create a robots.txt File for Your Website

Write a UTF-8 robots.txt file at your site root, add User-agent rules and a Sitemap line, then upload and test it. A practical checklist is included.

FindSEO5 min read