Skip to content

ProjectAn online education companyEducation

Tracking rebuilt so every enrolment counts once

Analytics showed two thirds of what the payment system knew, and nobody could say which third was missing. We rebuilt the tracking in Google Tag Manager and Google Analytics from the data layer up, with consent handled properly and every event tested.

enrolments tracked

Industry
Education, 12 country sites
Stack
Google Tag Manager, Google Analytics, BigQuery
What we built
Data layer, web and server side tracking
Outcome
43% more enrolments tracked

At a glance

  1. Challenge

    Tags in one container, added over six years by four agencies. Nobody knew which still mattered, so nobody dared remove one.

  2. Approach

    Events in a written data layer specification, each with its trigger, its parameters and an automated test.

  3. Result

    Paid enrolments that analytics also records, against sites still on the old tags.

An online education company sold courses through twelve country sites. Its marketing ran on what Google Analytics reported, and Google Analytics disagreed with the payment system by a third.

The problem

The container had grown the way containers do. Each agency added its tags and left the old ones in place. Some conversions fired twice, some never, and some only when a visitor happened to pass through a page that still carried a 2019 script.

Consent made it worse. The banner blocked some tags and not others, in ways that differed by country, so the numbers were incomplete and the setup was not properly compliant either.

What we built

A clean setup, written down before it was built. First a measurement plan: the questions the business asks, the events that answer them and the parameters each one carries. Then one data layer that the sites push to, a Tag Manager container built only from that data layer, and server side tagging so a purchase is confirmed by the payment system and not by whether a browser finished loading a thank you page. Consent mode is wired in per country, so each visitor's choice is respected and the gaps it leaves are modelled, not guessed.

From a click to a number you can trust

On the sites

Tag Manager

Where it goes

Web containerRebuilt from zero: 41 tags where there were 212, each one named and documented.

Six of the twelve country sites moved to the new tracking first, chosen at random. The other six kept the old container for ten weeks, and both were checked every day against the payment system.

The result

On the new tracking, analytics records 97% of paid enrolments, against 68% on the old tags. The 3% that remain are visitors who declined measurement, which is the correct answer.

With conversions it could see, bidding in the ad platforms improved without a change in budget. Pages also load faster, because 171 tags are gone.

What they own now

Theirs to keep

The containers, the specification and the tests are theirs, with a change process that keeps the setup clean after we leave.

  • The measurement plan

    Questions, events and parameters, agreed and written down.

  • The data layer spec

    34 events, the contract between site and tags.

  • The containers

    Web and server side, named and documented.

  • The tests

    Key journeys replayed on every release.

  • The daily check

    Analytics against payments, with an alert on drift.

How it was measured

Each day, paid enrolments in the payment system were matched to purchase events in analytics. Six of twelve sites moved to the new tracking first, chosen at random, and six stayed on the old tags for ten weeks.

Sites
6 moved first, 6 stayed
Period
10 weeks
Measure
Share of paid enrolments recorded in analytics
Tags
From 212 to 41

Let's find what moves your numbers.

Book a 30 minute call. Bring a question, leave with a plan.