Systems EngineeringEnterprise Analytics2026

6 Million URLs to 15k

Architecting a BigQuery-driven data warehouse to resolve extreme reporting debt and flat-CMS structural limitations.

The Strategic Proposal: From Fragmentation to Clarity

The Challenge

As demand for digital analytics grew across the organisation, existing reporting processes were becoming increasingly difficult to maintain. Reporting was often inconsistent between teams, significant manual effort was required to prepare analysis, and limitations in GA4’s data retention created concerns around the long-term availability of historical information.

While GA4 provided access to valuable behavioural data, its raw BigQuery export was not designed for immediate business analysis. The dataset contained 84 million events, 5.98 million unique URLs, fragmented page context, and inconsistent session information. Traffic source data, device attributes, and page-level information were often distributed across multiple event records, making meaningful analysis complex and time-consuming.

In addition, the organisation’s content management system introduced significant URL fragmentation. Multiple canonical versions of the same page, inconsistent URL structures, redirects, query parameters, decorative page paths and trailing slash variations resulted in millions of URL variations representing a much smaller number of actual content pages.

The result was a growing gap between the amount of available data and the ability to consistently turn that data into actionable insight.

Data Architecture

Rather than treating analytics as a collection of reports, the project focused on creating a scalable data platform that could serve as a long-term organisational asset.

Using BigQuery and dbt, a structured analytics warehouse was designed to transform raw event data into a trusted and reusable analytical model. A dimensional architecture was introduced, including custom dimensions for pages, sessions, traffic sources, devices and bespoke tracking implemented through Google Tag Manager.

The solution was built using a layered processing approach:

1. Raw Events Layer Ingested the native GA4 export containing 84 million events, preserving all available source data for future analysis.

2. Session Reconstruction Layer Rebuilt user sessions from event-level records, producing more than 8.15 million stable sessions and creating a reliable foundation for journey and funnel analysis.

3. Pageview Layer Cleaned, deduplicated and indexed 26.3 million pageviews, improving consistency and reporting performance.

4. Behaviour Modelling Layer Created session paths and navigation sequences to support user journey analysis, content flow reporting and conversion tracking.

5. Canonicalisation Layer Addressed extensive URL fragmentation by consolidating 5.98 million raw URLs into 15,334 canonical content records. This provided a meaningful content inventory and significantly improved reporting accuracy.

6. Enrichment Layer Combined page, session, traffic source, technology and behavioural context into a unified event model, making analysis simpler and more consistent across teams.

7. Reporting & Integration Layer Delivered trusted datasets to Power BI and Looker Studio while enabling wider integration with other digital platforms and initiatives.

Outcomes

The project transformed a large and complex event dataset into a centralised analytics platform capable of supporting operational reporting, strategic decision-making and future data initiatives.

Capabilities that were previously difficult, time-consuming or unreliable became standardised, including: *Content performance reporting at the canonical page level. *Cross-event funnel analysis. *Session and user journey reporting. *Marketing attribution analysis. *Multi-site analytics. *Consistent reporting across teams and stakeholders. *Long-term retention of analytics data beyond GA4’s standard limitations.

The architecture also established a foundation that could be extended beyond analytics reporting, supporting wider digital transformation initiatives including the Content Ownership Tracking System (COTS).

Benefits

Improved Data Quality

Millions of fragmented URL variations were reduced to a manageable and meaningful content structure, increasing trust in content and performance reporting.

Faster Reporting

Reports that previously required days of manual preparation could now be produced in hours, freeing analysts to focus on interpretation and decision-making rather than data cleansing.

Greater Confidence in Decision-Making

By providing a single source of truth, the platform reduced reporting inconsistencies and improved confidence in analytics across both the Digital team and senior leadership.

Reduced Technical Debt

Legacy dashboards and manual reporting processes were retired, reducing maintenance overhead and improving governance.

Long-Term Scalability

The dimensional warehouse architecture provides a reusable foundation that can support future reporting requirements, additional data sources and advanced analytical use cases.

Result

The project transformed analytics from a collection of disconnected reports into a trusted organisational data platform.

By combining BigQuery, dbt and a structured dimensional architecture, the solution converted 84 million raw events into a governed analytics warehouse capable of supporting both current and future business needs. The platform established a reliable source of truth, preserved valuable historical data, improved reporting efficiency and enabled integration with wider digital initiatives.

Designed and delivered by a single developer in approximately four months, the solution demonstrates how effective data architecture can create enterprise-scale value without the need for enterprise-scale resources.

“By distilling 6 million entries into 15,000 strategic assets, we reclaimed the narrative of our user data.”

Technical Stack

  • Infrastructure: Google BigQuery (Warehouse)
  • Transformation: DBT (Data Build Tool)
  • Tracking: Custom GA4 Event Schema / GTM
  • Logic: SQL & Regex Pattern Matching