Engineering brief

Beating Google Analytics: 3x Cheaper, 97% Data Quality

InfoQ2 min read · saves 45 min

At a glance

Relevance
Practical value
Warnings
None

Delivery Hero’s custom tracking system reached 97% order match accuracy, up from Google Analytics’ 85%, cutting costs 3x. That precision came from compile-time validation, but required years of optimization and a doubled pipeline during migration.

Build vs. buy analytics can yield massive cost savings and data quality improvements if you control your own pipeline.

Summary

Delivery Hero faced a forced migration from Universal Analytics. Instead of moving to GA4, they built an internal user tracking system to solve real-time data needs, event limits, and GDPR constraints. The initial MVP was a simple API with Pub/Sub and BigQuery, later extended with data validation, archival, and code-generated schemas.

Data quality rose from Google's 85% order match rate to 97% by shifting to compile-time event validation rather than asking developers to fix data manually. Cost per message dropped 25% after one year and eventually reached three times cheaper through archival, storage optimization, and on-demand nodes.

They avoided data loss during migration with a doubled pipeline—sending data via both old and new systems—though this multiplied costs for months until users updated apps. Pod crashes that caused data loss were solved by making requests synchronous, accepting a 7x latency increase.

The big lesson: a focused team with clear KPIs can outperform a generic SaaS product. Full control over priorities, cost, and privacy justified the effort, but it required rigorous load testing, progressive rollouts, and observability that was initially lacking.

Watch the video

This video is blocked due to your privacy settings. To watch this video, please accept YouTube marketing cookies.

Related breakdowns

Get TL;DW

Too Long; Didn't Watch.

A concise breakdowns of the AI and devtools videos that actually matter for engineering leaders.

Free. Weekly. No hype.

Video and thumbnails remain the property of their respective creators. tldw.news provides editorial analysis, commentary, and discovery links to original content.