AboutContactRSS
BNOn
General

How to Set Up Google Analytics 4 for a New Website

· October 22, 2026 · 7 min read

A new website without analytics is a shop with no door counter and no till receipts. You might get visitors, but you will not know where they came from or what they did. This guide explains how to set up Google Analytics 4 (GA4) properly on day one, so the data you collect is useful when you need it.

Google changes the interface from time to time, so menu names and positions may differ slightly from what you see. The concepts stay the same. Where something is likely to vary, check Google’s current help documentation.

What you need before you start

  • A Google account you control, ideally one that belongs to the business rather than a personal address of an employee who may leave.
  • Admin access to your website, whether that is a platform dashboard, a CMS or the code itself.
  • A rough list of the actions that matter on your site, such as purchases, contact form submissions, newsletter sign-ups or phone-number clicks.

Step 1: Create the account and property

  1. Sign in to Google Analytics and choose to create a new account.
  2. Give the account a clear name, usually your business name. An account can hold several properties.
  3. Create a property, which represents one website or app. Name it after the site, and set the reporting time zone and currency to match your business, since these affect reports.
  4. Answer the questions about your business size and goals. These shape suggested reports but do not restrict anything.
  5. Accept the terms and any data-sharing settings only after reading what they mean. Review each option rather than ticking everything by default.

Step 2: Create a web data stream

A data stream is the source of data feeding the property. For a website:

  1. Choose Web as the platform.
  2. Enter your site’s URL and a stream name.
  3. Leave Enhanced measurement switched on to start. It automatically records page views, scrolls, outbound clicks, site search, video engagement and file downloads, depending on your site. You can switch individual items off later if some are unnecessary.

After you create the stream, you will see a Measurement ID, which begins with “G-“. You need it for the next step.

Step 3: Add the tag to your website

There are three common ways to install GA4. Pick the one that matches your setup.

Option A: Built-in integration

Many site builders and e-commerce platforms have a field where you paste the Measurement ID, or an official Google integration. This is the simplest route. Paste the ID, save and publish. Be careful not to install it twice by also adding a plugin and code, which causes duplicate page views.

Option B: Google Tag Manager

Google Tag Manager (GTM) is a container that lets you add and change tracking tags without editing site code each time. It is helpful if you expect to add more tags later, such as ad conversion tracking.

  1. Create a GTM account and container for your site.
  2. Add the GTM snippet to your site as instructed.
  3. In GTM, create a Google tag (GA4 configuration) with your Measurement ID and set it to fire on all pages.
  4. Preview, test and publish the container.

Option C: Manual installation

Copy the global site tag snippet from the data stream’s tag instructions and paste it into the head section of every page, usually via a template or header file. This works but requires care when the theme changes.

Whichever method you use, install it only once.

Step 4: Check that data is arriving

Do not assume the installation worked.

  1. Open your site in one browser tab and the Realtime report in GA4 in another.
  2. Click around the site. You should see yourself appear as an active user within a short time.
  3. Use the DebugView or GTM preview mode for deeper checks of which events are firing.

If nothing shows up, common causes include a wrong Measurement ID, a page cache that has not refreshed, an ad blocker in your browser, or a consent banner that blocks the tag until you accept. Test in a private window with extensions disabled to rule out blockers.

Step 5: Understand the event model

GA4 records everything as events: a page view, a click, a scroll, a purchase. Each event can carry parameters, which are extra details, such as the page URL or the value of an order. This differs from older versions of Google Analytics, which were built around sessions and page views.

Some events are collected automatically, some come from enhanced measurement and others are recommended events you add yourself. You can also create custom events. Using Google’s recommended event names where they fit makes reports and integrations easier.

Step 6: Mark key events

Not every event matters equally. The ones that indicate success for your business should be marked as key events (previously called conversions in earlier versions of the interface). Examples:

  • A completed purchase on an online store.
  • A submitted contact or quote form.
  • A newsletter sign-up.
  • A booked appointment.
  • A click on a phone number or email link, if calls are important.

To do this, make sure the event is being collected, then toggle it as a key event in the admin area under events. If the action does not have its own event, create one. A simple method is to trigger an event when visitors reach a “thank you” page after a form. In GTM, this is a trigger on that page’s URL, linked to a GA4 event tag.

Be selective. If everything is a key event, nothing stands out.

Step 7: Configure the important settings

A few settings are worth checking in the first week.

  • Data retention: By default, event-level data is kept for a limited period. Check the options and choose the longest one available for your needs, understanding that this affects some detailed reports, not the standard aggregated ones.
  • Internal traffic filter: Exclude your own visits and your team’s, so they do not skew data. Define your IP addresses and activate the filter, taking note of any testing state.
  • Unwanted referrals: If payment gateways or booking tools send visitors back to your site, add them to the exclusion list so a sale is not credited to the payment provider.
  • Cross-domain tracking: If customers move between two domains of yours, such as a main site and a separate checkout, configure cross-domain measurement so sessions are not split.
  • Google Signals and advertising features: These relate to cross-device and advertising data. Enable them only if you need them and your privacy policy and consent setup cover them.
  • User access: Add colleagues and agencies with the minimum role they need, and remove access when people leave.

Step 8: Handle privacy and consent

Depending on where your visitors are, you may need to ask for consent before setting analytics cookies or collecting certain data, and disclose it in your privacy policy. Rules vary by country and region, and they change. Consider:

  • Using a consent management tool that works with Google’s consent settings.
  • Updating your privacy policy to explain what you collect and why.
  • Avoiding the collection of personal data such as names or email addresses in event parameters, which can breach Google’s terms and many privacy rules.

If you serve visitors in regions with strict rules, speak to a qualified professional. This article is a general overview, not legal advice.

Frequently asked questions

Is Google Analytics 4 free?

There is a free version that suits most small sites. A paid tier exists for large organisations with heavy data needs. Check Google’s current pricing information.

How long until I see data in my reports?

Realtime shows activity within moments of the tag working. Standard reports can take a day or so to populate, so check them the next day.

Do I need Google Tag Manager?

No. A direct integration or snippet is fine for simple sites. GTM becomes useful as you add more tags or want to track custom interactions without touching code.

Conclusion

To set up Google Analytics 4 well, create the property and web stream, install the tag once, confirm data in Realtime, mark your key events, tidy the settings and respect privacy rules. Thirty minutes of care now gives you clean data for every decision later. Once it runs, pair it with a plan, as in our digital marketing roadmap, so you know which numbers deserve your attention.

Digital Marketing Basics: A Practical Roadmap for 2026
How to Write a One-Page Marketing Plan for a Small Business

on68.com