How to Set Up Google Analytics 4

Quick Verdict

Setting up GA4 is like being handed a shiny new tool that comes with no instructions and three hidden reset buttons. It’s free, it’s mandatory now that Universal Analytics is dead, but the setup process will make you question your life choices. I give it ** ** ** (3/5) for ease — once it’s running it’s great, but getting there is a headache. Data quality? **** (4/5). The event model is way more flexible than UA ever was.

Alright. So here’s why you’re even reading this. You probably have a website. You need to know who’s visiting, what they’re clicking, whether your ads are worth the money. Old Google Analytics stopped working in July 2023. If you haven’t migrated yet, you’re already missing data. I know — I lost a whole month of traffic data because I thought I could put it off. Don’t be me.

Let’s walk through it.

Step 1: Create a GA4 Property

Open analytics.google.com. Click Admin (gear icon bottom left). Under Property, click Create Property. Name it something you’ll recognize in a year — “My Site – GA4” not “test123”. Choose your timezone and currency. Hit Create.

What can go wrong: Google still lets you accidentally create a Universal Analytics property. You’ll see a dropdown that says “Property type”. Make sure it says Google Analytics 4 not “Universal Analytics”. If your property ID starts with UA- , you did it wrong. Start over. The correct ID starts with a G- .

Step 2: Get Your Measurement ID

Once the property is created, go to Admin > Data Streams > Add Stream > Web. Put in your website URL and stream name (e.g., “Site Web”). Create.

Now you’ll see a big box with a Measurement ID — looks like G-XXXXXXXX. Copy that. You’ll need it.

What can go wrong: The enhanced measurement toggle is right there. Turn it on. By default it tracks page views, scrolls, outbound clicks, site search, video engagement, file downloads. If you skip this, you’re missing half the data. I once left it off for two weeks and wondered why my scroll depth was zero. Embarrassing.

Here’s the thing nobody tells you: You also need to manually mark a conversion event. GA4 does NOT automatically count purchases, sign-ups, or any key action. You have to go to Configure > Conversions and create a new conversion event. I once accidentally fired a test event called “test_purchase” and sent it to my entire client list — well, not the event, but I had a Slack webhook that announced every test purchase. My boss was… less than thrilled.

Shortcut: Use Google Tag Manager instead of pasting the gtag snippet directly. It lets you manage all your tags from one place. But setting up GTM is its own rabbit hole. If you’re doing a quick GA4 setup, just paste the snippet.

Step 3: Install the Tag

Copy the global site tag (gtag.js) code from the Data Streams screen. It’s a block of JavaScript. Paste it into the <head> of every page on your site. If your site uses a CMS like WordPress, use the “Insert Headers and Footers” plugin or your theme’s header.php file.

What can go wrong: Paste it in the wrong place — like the footer — and data won’t fire correctly. Use the Google Tag Assistant browser extension. It shows if your GA4 tag is on the page and if it’s sending hits. Download it, click the icon, refresh. If you see green “GA4” tag, you’re golden. If red, start over.

Step 4: Set Up Events

Events are the heart of GA4. By default you get a few: page_view, scroll, click, first_visit. But you want more. Go to Configure > Events > Create Event. You can create custom events based on clicks, form submissions, whatever.

The hack: Use recommended events from Google’s list — purchase, sign_up, login, etc. They have predefined parameters that integrate with Google Ads. Don’t invent your own if Google already has one. I spent three hours debugging why my “OrderComplete” event didn’t show up in reports — turned out I used a capital O. Event names are case-sensitive. Yeah.

What can go wrong: If you create a custom event with a condition like “click text equals ‘Buy Now’” and the page has two buttons with that text, both fire. Be specific. Use CSS selectors or URLs to narrow it down. And test everything in DebugView — it’s a real-time log of events from your device. It’s under Configure > DebugView.

Step 5: Verify Data is Flowing

Open Reports > Realtime. If your own visit shows up within a minute, you’re good. Now wait 24 hours. Seriously. Some reports (like user acquisition) take a day to populate. If after 24 hours you see zero data, check your tag installation with Tag Assistant again. Then check if you have any filters that might exclude internal traffic — create a filter for your IP address, but don’t apply it until you’re sure everything works.

And then there’s the whole thing about how Google

AI generated illustration
AI generated illustration

🖼️ Looking to upscale your images?

Try our free AI image upscaler — upload any image and get a 4K high-resolution version instantly. No signup required.

Upscale Your Images Free →

Free 2K preview · 4K download just $2.99 · One-time payment

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top