Skip to content

Tutorials Website building Beginner1 min read

How to Set Up Google Analytics 4 on Your Website

Create a GA4 property, add the tag directly, with Google Tag Manager or in WordPress, confirm data arrives, and respect visitor consent.

By ZSOLNET Editorial Team Updated

Key takeaways

  • GA4 measures visits and actions with a Measurement ID like G-XXXXXXX.
  • Add the tag once — through the site's code, Tag Manager or a plugin, not several.
  • Ask for consent where the law requires it before analytics cookies are set.

1. Create a property

  1. Go to analytics.google.com and click Admin → Create → Property.
  2. Enter a name, time zone and currency, then business details.
  3. Choose Web as the platform, enter your site’s URL and create the stream.
  4. Copy the Measurement ID (G-…).

2. Add the tag

Directly in the site’s code — paste the snippet Google shows into the <head> of every page.

With Google Tag Manager — create a Google tag with your Measurement ID, trigger it on Initialization – All Pages, and publish.

In WordPress — use Google’s official Site Kit plugin, or your theme’s header-scripts setting. Don’t use more than one method.

3. Check it works

Open your site, then in GA4 go to Reports → Realtime. You should see yourself within a minute.

4. Track what matters

  • Mark key actions (form submissions, purchases) as Key events under Admin → Events.
  • Tag campaign links with the UTM builder so you know which ads and emails bring visitors.
  • Link Search Console under Admin → Product links.

Frequently asked questions

Why isn't data showing up?

Standard reports can take 24–48 hours. Use Reports → Realtime or DebugView to confirm the tag works right away.

Should I use Tag Manager?

If you'll add other tags (ads, heatmaps, conversions), yes — it lets you manage them without editing the site's code each time.

Share X LinkedIn Facebook

Log in to your account

Manage your domains, hosting and invoices in one place.

Secure connection straight to the ZSOLNET client area.

Open the ZSOLNET dashboard

No account yet?