Find a course

Module 1: How Web Analytics WorksLesson 1 of 1211 min

What Web Analytics Measures

See how web analytics turns visits into decisions, tell metrics from dimensions, and link business goals to a small set of KPIs worth tracking.

Step 1 of 13Learn

A redesign that looked like a disaster

An outdoor gear shop launched a new website on a Monday. By Wednesday the owner was panicking: the analytics dashboard showed traffic down 25% compared with the previous week. He was ready to roll back the redesign.

His marketing contractor dug a little deeper before anyone touched the site. Traffic from search and email was flat. The drop came almost entirely from one source: a large online forum that had linked to a viral blog post the week before. That spike had simply ended. Meanwhile, the share of visitors who started checkout had risen from 2.1% to 2.8%, and revenue was up. The redesign was working; the comparison week was unusual.

That is what web analytics is for: collecting, measuring and analyzing data about how people find and use a website, so you can make better decisions. The raw numbers are rarely the point. The value comes from asking a good question, looking at the right slice of data and comparing against a fair baseline.

In this course you'll learn the core metrics, how tools such as Google Analytics 4 (GA4) collect them, how to track campaigns, how to analyze funnels and segments, and how to report results honestly. The examples use GA4 because it is the most widely used free tool, but the concepts apply to any analytics platform.

Step 2 of 13Practice · Chart

The gear shop's traffic by source

Tap the source that explains almost all of the drop.

Tap the bar that answers the question, then press Check.

The gear shop's traffic by sourceBar chart with 4 categories: Search: Week before 4,000, Launch week 4,050; Email: Week before 1,500, Launch week 1,480; Forum referral: Week before 2,600, Launch week 150; Direct: Week before 1,900, Launch week 1,920.01,0002,0003,0004,0005,000SessionsSearchEmailForum referralDirect4,0004,0501,5001,4802,6001501,9001,920
Illustrative numbers for teaching, not real data. Total traffic fell from 10,000 to 7,600 sessions, about 25%.
The gear shop's traffic by source
ItemWeek beforeLaunch week
Search4,0004,050
Email1,5001,480
Forum referral2,600150
Direct1,9001,920

Step 3 of 13Practice · Choose one

What was the main lesson of the outdoor gear shop story?

Step 4 of 13Learn

Metrics and dimensions

Every analytics report is built from two kinds of building blocks.

A metric is a number: something you count or calculate. Examples: users, sessions, views, engagement rate, key events, revenue, average engagement time.

A dimension is an attribute that describes or groups the data. Examples: country, device category, page title, traffic source, browser, landing page, date.

Reports combine them. "Sessions by device category" uses the metric sessions and the dimension device category:

Device categorySessions
mobile6,200
desktop3,400
tablet400

A simple test: if you can add it up or average it, it's probably a metric; if it's a label you'd group by, it's a dimension. "Country" is a dimension because you can't add France to Japan; "sessions" is a metric because you can add sessions together.

Most useful analysis means picking one or two metrics that matter and then breaking them down by dimensions to find where things differ. A site-wide conversion rate of 2% might hide 3.5% on desktop and 1.2% on mobile, which is a very different story and points straight to what needs fixing.

Step 5 of 13Practice · Sort into groups

Sort each item into metric or dimension.

Tap an item, then tap its group (or drag it there).

Step 6 of 13Compare

Metrics vs dimensions

AspectMetricDimension
What it isA number you count or calculateA label or attribute that describes data
ExamplesUsers, sessions, views, revenue, engagement rateCountry, device category, page title, source
Question it answersHow many? How much? What rate?Which? Where? What kind?
In a report tableThe columns of numbersThe rows you break the numbers down by

Step 7 of 13Learn

From business goals to KPIs

Analytics tools can track hundreds of metrics. Trying to watch them all is a recipe for confusion. Instead, start from what the website is for.

  1. Business goal: what the organization wants. "Grow online sales." "Get more qualified leads for our accounting firm." "Increase newsletter readership."
  2. Website objective: what the site must do to support it. "Turn more visitors into buyers." "Get visitors to request a consultation."
  3. Key performance indicator (KPI): the few metrics that best show progress. Ecommerce conversion rate, revenue, cost per lead, consultation requests per month.
  4. Target: what good looks like. "Raise conversion rate from 1.8% to 2.2% this quarter."
  5. Segments: the groups you'll compare. New vs. returning visitors, mobile vs. desktop, paid vs. organic.

A KPI should be tied to an outcome someone cares about, measured the same way over time, and something your actions can influence.

Metrics that look impressive but don't connect to outcomes are called vanity metrics. Total page views, follower counts and raw hits can rise while sales fall. They aren't useless, but they shouldn't be the headline of a report.

Step 8 of 13Practice · Put in order

Put these planning steps in the logical order, from broadest to most specific.

Drag the items, or use the arrow buttons, to put them in order.

  1. Target: raise conversion rate from 1.8% to 2.2% this quarter
  2. Business goal: grow online sales
  3. Website objective: turn more visitors into buyers
  4. KPI: ecommerce conversion rate

Step 9 of 13Diagram

From one business goal to a measurable target

Each level narrows the one below it. Segments (mobile vs desktop, new vs returning) then tell you where the KPI moves.

From one business goal to a measurable targetPyramid diagram: Business goal, Website objective, KPI, Target.Business goalWebsite objectiveKPITarget

Tap a shape with to see more.

Business goal

What the organization wants, e.g. "Grow online sales."

Website objective

What the site must do: "Turn more visitors into buyers."

KPI

The few numbers that show progress, e.g. ecommerce conversion rate.

Target

What good looks like: "From 1.8% to 2.2% this quarter."

Step 10 of 13Note

Step 11 of 13Practice · Sort into groups

A local accounting firm wants more consultation requests from its website. Sort these metrics into likely KPIs or vanity metrics for that goal.

Tap an item, then tap its group (or drag it there).

Step 12 of 13Tap to reveal

Four kinds of questions analytics can answer

  1. Acquisition: how do people find us?

    Which channels, campaigns and referring sites bring visitors, and which of those visitors turn into customers.

  2. Behavior: what do they do?

    Which pages they land on, what they read, click, search for and watch, and where they leave.

  3. Conversion: do they do what we need?

    Purchases, sign-ups, lead forms and other key actions, and the rate at which each group completes them.

  4. Retention: do they come back?

    How often users return and whether customers acquired in one period stay engaged longer than others.

Step 13 of 13Practice · Choose one

Which of these is the best KPI for a news website whose business depends on paid subscriptions?