Data trackingEnterprise data tracking2023–Present

Creating a Reusable Analytics Framework with Google Tag Manager

Creating scalable data tracking frameworks within high governance environments.

Overview

Effective digital analytics relies on accurate, consistent and scalable data collection. When I took ownership of Google Tag Manager (GTM), tracking had evolved organically over several years, resulting in inconsistent implementations, legacy configurations and limited insight into how users interacted with our websites.

I led the transformation of the GTM estate, creating a reusable analytics framework that standardised tracking across approximately 25 websites, improved data quality, reduced implementation effort and established the foundation for advanced reporting and BigQuery analysis.

The Challenge

The organisation managed multiple websites with differing analytics implementations. Tracking configurations varied between sites, including a mix of Universal Analytics, GA4 and transitional setups.

Key challenges included:

  • Inconsistent measurement across websites.
  • Legacy tags, triggers and variables accumulated over time.
  • Limited visibility of user interactions beyond basic page views.
  • Broken or unreliable event tracking.
  • No standard deployment model for new websites.
  • Inconsistent campaign tracking practices.
  • Fragmented analytics architecture, making reporting and analysis difficult.

While a default GA4 implementation existed, it did not provide the level of measurement required to effectively understand user behaviour or support data-driven decision making.

The Solution

A complete review and rationalisation of the GTM estate was undertaken, resulting in the creation of a reusable analytics framework that could be consistently deployed across current and future websites.

Key improvements included:

Analytics Standardisation

  • Removed over 250 legacy tags, triggers and variables.
  • Introduced folder structures and governance standards to improve maintainability.
  • Implemented formal tracking specifications.
  • Established a structured process for requesting and documenting new tracking requirements.

Enhanced User Interaction Tracking

Developed bespoke tracking solutions for interactions not captured through standard analytics implementations, including:

  • Telephone link clicks.
  • Email link clicks.
  • Accordion interactions.
  • Search and filter usage.
  • Custom CMS components.
  • Form completions.

Where native GTM functionality proved unreliable, alternative approaches were developed. For example, standard form tracking incorrectly recorded user interaction with form fields as submissions due to the way the CMS generated forms. A Data Layer-based solution was designed and implemented to ensure accurate form completion reporting.

Cross-Domain and Subdomain Measurement

Implemented subdomain tracking across approximately a dozen websites and services, providing a more complete understanding of user journeys that crossed previously disconnected analytics boundaries.

This created significantly better visibility of how users moved between services and reduced reporting fragmentation.

Performance Measurement

Implemented Core Web Vitals collection through GTM and custom JavaScript, enabling website performance metrics to be captured alongside behavioural analytics data.

Campaign Governance

Introduced campaign tracking guidance, including:

  • Standardised UTM conventions.
  • Documentation and templates for communications and marketing teams.
  • Improved consistency in campaign reporting and attribution.

Reusable Deployment Framework

Perhaps the most significant improvement was the creation of a reusable GTM template used across all new website implementations.

New websites could be onboarded with advanced tracking capabilities by configuring only a small number of site-specific settings and account identifiers.

This reduced implementation effort from approximately half a day per website to around 30 minutes while ensuring consistency and adherence to best practice.

Results

The programme delivered significant improvements across the organisation’s digital analytics capability.

Improved Data Quality

Accurate tracking of key user interactions provided a much clearer understanding of how visitors engage with digital services.

Greater Consistency

A single analytics framework ensured websites were measured using the same standards, improving confidence in reporting outcomes.

Faster Deployment

The reusable GTM template dramatically reduced implementation time for new websites while maintaining quality and consistency.

Better User Journey Insights

Subdomain tracking provided a more complete view of user behaviour across multiple websites and services.

Stronger Governance

Formal tracking specifications, request processes and campaign guidance improved the quality and reliability of analytics data.

Foundation for Advanced Analytics

The enhanced event tracking framework created the high-quality data needed to support downstream reporting and BigQuery analysis, particularly around critical events such as form completions.

Key Takeaway

This project transformed Google Tag Manager from a collection of individual website implementations into a scalable analytics platform.

By standardising measurement, improving governance, developing bespoke tracking solutions and creating a reusable deployment framework, the organisation gained a consistent and reliable foundation for digital insight across a growing portfolio of websites.