How to set up Google Analytics 4 in 10 minutes

10 min · no code skills needed · updated June 2026

Quick answer. To set up Google Analytics 4, sign in at analytics.google.com, create a property, and add a web data stream for your site. That gives you a Measurement ID (it looks like G-XXXXXXX). Paste Google’s tag into your site’s head, or drop the ID into your site builder or a plugin. Then open the Realtime report, visit your own site, and watch yourself appear. That’s it. The rest is optional polish.

If GA4 feels like a cockpit when all you wanted was a fuel gauge, you’re not doing it wrong. It’s built for analysts. This gets you wired up fast, and at the end we’ll show you the shortcut to never decoding it by hand again.

What you'll need

Set up GA4, step by step

  1. Create your account. Go to analytics.google.com and sign in with Google. Click Start measuring. Give the account a name (your business name is fine).
  2. Create a property. A property is the bucket GA4 pours your data into. Name it, set your time zone and currency. These matter later when you read reports, so get them right now.
  3. Add a web data stream. Choose Web, enter your site URL and a stream name. GA4 hands you a Measurement ID that starts with G-. Copy it. That ID is the whole game.
  4. Install the Google tag. You have three ways, easiest first:
    • Site builder: paste the Measurement ID into the analytics field. Webflow, Framer, Shopify, Squarespace all have one in settings. Done.
    • Plugin (WordPress): install a GA plugin, paste the ID. Done.
    • By hand: copy the gtag.js snippet GA4 shows you and paste it just before the closing </head> tag on every page. If you don’t want to touch code, use the AI prompt below.
  5. Leave Enhanced Measurement on. It’s on by default. It auto-tracks scrolls, outbound clicks, file downloads, and site search with zero setup. Free events, take them.
  6. Wait for data. Standard reports take 24 to 48 hours to populate. Realtime works immediately, which is how you’ll verify in a second.

Do it with AI

Don’t want to touch the code? Paste this into Claude or ChatGPT and let it do the wiring. Swap in your stack and your Measurement ID.

Install GA4 for me
You are helping me install Google Analytics 4 on my website.

My setup:
- Framework: [e.g. Next.js 14 app router / plain HTML / Astro / Cloudflare Workers]
- My GA4 Measurement ID: G-XXXXXXX

Give me the exact code to add, tell me which file it goes in and
where, and make sure it loads on every page. Keep it the lightest,
fastest version (async, no extra libraries). Then tell me how to
confirm it's working.
Make it load fast (SSR frameworks)
Make the GA4 snippet load without blocking my page render, and
show me how to add it once in a shared layout instead of pasting
it on every page. Explain any tradeoff in one line.

That’s the "vibecode it yourself" version. Five minutes, no documentation rabbit hole.

How to check it worked

Open GA4, go to Reports then Realtime. Now open your site in another tab and click around. Within a few seconds you should see 1 active user (that’s you) and your pageviews ticking up. If you see yourself, the tag is live. If you don’t, jump to the mistakes below.

Common mistakes

FAQ

How do I know if GA4 is working?
Open Reports then Realtime and visit your own site. If you appear as an active user within a few seconds, it’s working. Realtime is instant, standard reports take a day or two.
Do I need Google Tag Manager?
No. Tag Manager is useful once you’re tracking lots of custom events, but for a basic setup the direct Google tag or your site builder’s analytics field is faster and simpler.
Is GA4 free?
Yes. Google Analytics 4 is free for the traffic levels almost every founder and solopreneur will ever see.
How long until I see data?
Realtime shows immediately. Standard reports populate after 24 to 48 hours, so don’t judge your setup by an empty dashboard on day one.
What’s a Measurement ID?
It’s the unique code for your site, starting with G-. It tells Google which property to pour your data into. You copy it from your web data stream.
Can I add GA4 without a developer?
Yes. Use your site builder’s analytics field, a plugin, or the Claude/ChatGPT prompt above to generate and place the code for you.

You wired it up. Now you have to read it.

Here’s the part the guides skip. Installing GA4 is the easy ten minutes. Opening it every week and finding the one number that matters, buried under two hundred that don’t, is the hard part that never ends.

Holy Bucket reads your GA4 for you and tells you, in plain English, who poured in, what they did, and exactly where they leaked out. No reports to build. No dashboard to babysit.

Keep going

Last updated June 2026. By Holy Bucket.