Navigating Turbulence with our Landing Page Performance Model

Catherine Wates17 Nov 2023

Problem

Marketing needs landing page results by traffic source (organic search, email) to judge campaigns and decide where to spend. The existing Looker tables identified pages by page_context_name, which needs knowledge of Snowplow client-side tracking and sometimes covers several pages at once. Analysts therefore pulled the numbers ad hoc. After the move from Google Analytics to Snowplow, the old self-serve view of this data was gone.

Illustrative example: a marketer copies a page URL from the browser and wants sessions and lead interactions for that page by channel, without asking an analyst.

Solution in brief

Join three existing client-side tables into one model keyed by page_url: traffic source from the attribution table, page URL from the page-view table, metrics from the session table. Build it in dbt with one row per session and leave the final aggregation to Looker, because the first version aggregated too early and lost sessions.

Questions this case answers
  • How to expose page-level performance split by acquisition channel as a self-serve dataset for people who do not know the tracking implementation
  • How to join session-level and page-view-level tables so that totals still reconcile with the session table
  • How to let non-technical teams see landing page performance by traffic source without asking an analyst each time?
  • How to build a landing page by channel model from session and page-view tables without a huge query cost?

Tools and methods

  • Snowplow — client-side event tracking behind the page-view and session tables.
  • dbt — layered model (input ports, staging, output port) that replaced one large query.
  • BigQuery — warehouse where the three tables are joined.
  • Looker — BI tool where users filter by page_url and where the final aggregation happens.
  • Session-grain output — one row per session, aggregated only in Looker.
Continue reading — it's free

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