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
- Go to analytics.google.com and click Admin → Create → Property.
- Enter a name, time zone and currency, then business details.
- Choose Web as the platform, enter your site’s URL and create the stream.
- 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.