MarketingChef

Free pantry › Recipe 3 of 9

Recipe R003

Google Analytics 4 (right install)

  • Course: Prep kitchen
  • Time to cook: 1–2 hrs, you do the first check in days
  • Cost: $0, just your time
  • Who cooks it: The owner can cook it
  • Results show up in: weeks

WHY THIS WORKS

You cannot steer a car with the radio up and the dashboard off. That is what most beginners do: they build a website and drive traffic to it, but they never install real measurement, so every decision is a memory and every "it worked?" is a shrug. GA4 is Google's free analytics, and it is the dashboard that turns your marketing from guessing into driving.

This recipe is not "install Google Analytics." It is install it the right way, because the default path is full of traps that quietly leave you blind. The big one: GA4's data retention defaults to just 2 months, so if you never raise it, your detailed history (explorations and funnel reports) quietly disappears and you lose the ability to compare across a year. Another: GA4 is an event-based system, not a pageview system, so you have to tell it which events matter and mark them as key events (what GA4 used to call conversions) or it will happily report traffic and never report the lead. This recipe, and its partner R004 (Tag Manager + your first conversion event), are the difference between an analytics account you open once and a measurement system you actually use.

None of this requires a budget: GA4 is free, and Google Tag Manager (R004) is free too. The cost is an hour of setup done carefully, which is the cheapest lever in the whole book.

INGREDIENTS

  • A Google account (any) and edit access to the website where you will tag.
  • A GA4 property you will create here (or already have). Note the Measurement ID, the G-XXXXXXX string.
  • The Google tag method of your choice. The recommended path in this book is to install the tag through Google Tag Manager (R004), so all your tags live in one place. This recipe assumes GTM; the generation is the same either way.
  • The plumbing checklist from Chapter 1 so the pieces connect (this is the core of the plumbing that chapters 1 and 2 wire up).

PREP (setup, once)

  1. Create the GA4 property at analytics.google.com if you do not have one: Admin → Create property → pick your type. This creates the container that receives your data.
  2. Create the data stream. Admin → Data streams → Add stream → Web, and paste your site's URL. This is what the page will send into GA4. Copy the Measurement ID shown.
  3. Raise the retention default. Admin → Data settings → Data retention → under Event data retention, change 2 months (the default) to 14 months, the longest a standard GA4 property allows, and save. (26, 38, and 50 months exist only on paid GA4 360.) Do this now: the change only applies going forward, so every week you wait is history you never get back. It affects explorations and funnel reports; standard reports are not cut off.
  4. Open Google Tag Manager (R004) and take note of your container's GTM-XXXXXXX ID. GTM is where your kinetic tag (the GA4 configuration tag) will live.

METHOD (the heart)

  1. Add the GA4 configuration tag in GTM. In GTM: Tags → New → tag type Google Analytics: GA4 configuration → paste your Measurement ID → Trigger All Pages. Save. This one tag tells every page to send pageview data into your GA4 property.

  2. Publish the container. GTM → Submit (after a preview check, below). Nothing sends data until the new container version is live.

  3. Verify the tag fires (this is the "tested and working" step). Open your site in a fresh tab, then in GA4 open Realtime report. You should see your own visit and page title within moments. If you see nothing, run GTM Preview mode and confirm the GA4 tag fires on the page (see troubleshooting).

  4. Mark the events you care about as key events (GA4's current name for conversions). In GA4: Admin → Data display → Events, find your lead action (e.g., form_submit, phone_click, or whatever R004 makes you fire) and click the star beside it. If the event hasn't fired yet, click + Create event, type its exact name, and turn on Mark as key event. GA4 will not count leads until you do this, so this step is easy to miss and expensive to lose.

  5. Let a few days of real data collect before you trust the numbers for decisions (R002). During setup you are testing the plumbing; within a week you are reading a real funnel.

PLATING · what "done" looks like

  • GA4 shows your visits in Realtime, from your own site, within minutes of setup.
  • Data retention is raised from the 2-month default to 14 months.
  • Your carefully chosen events are marked as key events so a lead is actually counted.
  • Evidence of done: you can open GA4 any day, see sessions and pageviews, and (once R004 is in) watch a lead key event fire when someone submits your form.

TROUBLESHOOTING

  • "GA4 shows nothing in Realtime." The tag is not firing or the container is not published. Run GTM Preview and watch the GA4 tag: if it does not fire, check the Measurement ID and trigger. If it fires but the report is empty, check you are looking at Realtime after a fresh visit (data can lag a few minutes in other reports).
  • "My lead is happening but GA4 does not count it." You fired the right event but never marked it as a key event (step 4), or the key event is not named identically to the event. Names must match exactly.
  • "Numbers look different in GA4 vs. my site." Ad blockers and consented users suppress some data (R014), and different tools count differently. Use GA4 as your source of truth for trends and compare like-for-like; do not panic at a single discrepancy.
  • "I see my old light install and a new one is confusing me." Keep one measurement source of truth (the new GA4 via GTM) and remove duplicate tags so you are not double-counting sessions.

CHEF'S NOTES / MAKE IT YOURS

  • This is recipe step one of the plumbing. R004 adds the conversion event, R035 extends it to ad platforms, R001 and R002 tell you what to look at. Do these once, correctly, and they measure every channel you add later at no extra cost.
  • Consent matters (R014). Depending on your region and your site's consent banner, some visits are only partially tracked. This is normal and expected; the plumbing set it up honestly.
  • An "event" is the unit now. Forget "pageviews"; get comfortable that GA4 counts events (page_view, form_submit, phone_click). Marking the money events as key events is the single decision that makes GA4 useful for a business.
  • Realtime is your friend on setup day. It is the fastest proof the plumbing is alive before you trust a single campaign.