Primus: GetYourGuide's Answer to Unified Marketing Analytics

Eugene Klyuchnikov5 Dec 2023

Problem

GetYourGuide's marketing team asked how to calculate bounce rate for each marketing channel, and nobody could answer it. An attribution system and a session performance analyzer existed, but no model joined their data with Product and Supply data. Adding the Product team's needs pushed the dimensions past forty, so the choice was between a detailed but slow model and a simple but fast one.

Example from the article: a marketer asked in a meeting, "How should we go about calculating the Bounce Rate for each Marketing Channel?" and the team had no single place to get the answer.

Solution in brief

The team first agreed on written definitions of terms such as "session" and "search". It then built two layers: a detailed data layer for analysts and a fast session-level reporting layer. The reporting layer filters out junk sessions, shortens IDs, offers approximate distinct counts, and gates access with a short quiz.

Questions this case answers
  • How to keep a detailed session-level analytics model fast enough for interactive BI queries across dozens of dimensions
  • How to give many business users self-service access to large event-derived tables without overloading shared reporting resources
  • How to align several teams on one definition of core behavioral entities before building a shared data model
  • How to calculate a session metric such as bounce rate per marketing channel from one consistent data model?

Tools and methods

  • Dimensional model (fact and dimension tables) — sessions, searches, touchpoints and product page views as fact tables joined by IDs
  • Session-level aggregation — a reporting layer that cuts data volume so queries run in seconds
  • Hash-shortened IDs — 128-character UUIDs replaced by 20-character hash prefixes
  • HyperLogLog — approximate count distinct as an optional "probabilistic" mode
  • Looker — reporting layer where users query the model
Continue reading — it's free

Google or a one-time email code. No password.