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
- A free Google account.
- Access to your website’s head, or a site builder (Webflow, Framer, Shopify, Squarespace, WordPress) where you can paste a code snippet or an ID.
- Ten minutes.
Set up GA4, step by step
- 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).
- 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.
- 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.
- 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.
- 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.
- 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.
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 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
- Tag on the homepage only. It has to be on every page, which is why the shared-layout method beats copy-pasting. Miss a page and that page is a blind spot.
- Confusing GA4 with the old Universal Analytics. Universal Analytics stopped processing data in July 2023. Any guide or tracking ID starting with UA- is dead. GA4 IDs start with G-.
- Two tags fighting. A plugin AND a hardcoded snippet means double-counted traffic. Pick one install method.
- Panicking at empty reports. Standard reports lag 24 to 48 hours. Realtime is your proof it works today.
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.