๐Ÿ“Š We use cookies & analytics to improve your experience. Learn more
Latest

Digital Marketing Masterclass Module 2 ยท Lesson 4 of 15

0% Exit to course

Module 2 ยท Measuring anything at all Lesson 4 of 15

GA4 basics

Learning objective

GA4 records events, not just page views: a click, a sign-up and a scroll are all events you can look at afterwards.

The concept

GA4 is the analytics tool bolted onto almost every website, and it answers three questions: how many people came, where from, and what they did. Install the tag once, then look at Reports โ†’ Engagement โ†’ Pages to see which pages actually hold attention, and Acquisition โ†’ Traffic acquisition to see where the visits came from.

The single most useful feature is an Event: gtag('event', 'score_check_started') marks the moment somebody begins your tool, and score_check_completed marks the moment they finish. Those two events turn a report about visitors into a report about conversion, and the gap between them is where your design loses people.

JavaScript
// Fires when someone starts the tool.
gtag('event', 'score_check_started', { tool: 'altigrad' });

// Fires when they finish it.
gtag('event', 'score_check_completed', {
  tool: 'altigrad',
  score_bucket: '70-100'
});

// The gap between started and completed is where your design loses people.

Common mistakes

The mistake is installing the tag and never checking it. Open the real-time report on your phone while you load the site: if you do not appear, the tag is on a page, not on the site. And resist counting sessions as people โ€” one person refreshing ten times is not ten visitors.

Worked example

Users, sessions and conversions answer three different questions โ€” mixing them up is how a report ends up claiming growth that did not happen.

Your practice task

Install a tracking tag on a test page, then confirm your own visit appears in the real-time report on your phone.

Do this before moving on. Reading a solution teaches the shape of it; typing it teaches you.

Key takeaway

GA4 is the analytics tool bolted onto almost every website, and it answers three questions: how many people came, where from, and what they did.

Create free account or sign in

Almost there

15 lessons left of 15

Finish every lesson to unlock the certificate. Each one ends in a practice task โ€” do them and the final project brief writes itself.

Next recommended course UI/UX Design Fundamentals