Real-Time Editorial Analytics | Snowplow

Learn how to perform real-time editorial analytics with Snowplow and ClickHouse

Welcome to the Real-time Editorial Analytics solution accelerator for media publishers.

This accelerator demonstrates how to leverage real-time Snowplow event data with ClickHouse Cloud to understand article engagement and user behavior on a media publisher site.

Through this hands-on guide, you'll learn how to build, deploy, and extend real-time, event-driven architectures using Snowplow and ClickHouse. The framework is inspired by real customer use cases in media.

This accelerator is open source (Apache 2.0). Feel free to use it as the foundation for practical applications such as real-time viewer insights, engagement analytics, ad performance tracking, or personalized content recommendations.

Architecture

The solution comprises several interconnected components:

  • Web tracking application:
    • A Next.js application with a number of articles and advertisements
    • Snowplow tracking for events related to article engagement, e.g., article impressions, article views, ad impressions, ad clicks, or page pings, sent to the Snowplow Collector
    • Code available in the snowtype.ts file in GitHub
  • Snowplow Micro:
    • Snowplow Micro is a lightweight version of the Snowplow pipeline which can be run locally
    • It passes validated and enriched events to Snowbridge
  • Snowplow Snowbridge (also known as Event Forwarding):
    • Filters incoming Snowplow events to only forward a subset of events and dimensions to ClickHouse
    • Publishes events and lands events in a single table in ClickHouse using ClickHouse's HTTP interface
  • ClickHouse Cloud:
    • ClickHouse Cloud receives and stores events from Snowplow
    • Stored data can be queried using ClickHouse's UI or via API

The following diagram maps out where each component sits in the end-to-end communication flow.

Architecture diagram showing event data flowing from a front-end website through Snowplow Micro (Collector, Schema Validation, Enrichments) and Snowbridge (Event Forwarding, Transformation and Filters) to a ClickHouse table, which is queried by a Personalization Service and the Content Editorial Team

Prerequisites

You'll need a ClickHouse Cloud account to receive the Snowplow events. A 30-day free trial signup is available.

Acknowledgments

Thank you to the ClickHouse team for their support and collaboration with building this accelerator.

Cloud Platforms

Data Platforms

Data Platforms

All Supported

Activation Products

Solution Partners

Key Outcomes

  • Understand article engagement and user behavior in real time across a media publisher site
  • Track high-signal media events including article impressions, views, ad impressions, ad clicks, and page pings
  • Build and deploy a real-time, event-driven analytics architecture using Snowplow and ClickHouse Cloud
  • Extend the framework for use cases like viewer insights, ad performance tracking, and personalized content recommendations

Get Started

See how Snowplow gives companies the real-time user data foundation and context layer to make better business decisions while powering the AI initiatives that will define the next era of media.