Create a Clickstream event collector in 10 minutes using Azure Logic App

Julien Kervizic
Hacking Analytics
Published in
5 min readDec 18, 2019

--

Photo by YUCAR FotoGrafik on Unsplash

I recently wrote about using clickstream events collectors, such as Snowplow or Divolte, to power more reliable and deeper analytics. It is however, possible to create your clickstream event collector in a few clicks using Microsoft’s Cloud.

Components overview

Besides the tracking script, the Azure stack can handle all the functions of a clickstream collector with three components: Logic App, EventHub, and DataLake Storage.

  1. Tracking Script: A tracking script is a piece of javascript that will be downloaded by the browser, and that will track and send the different events to the clickstream collector.
  2. Logic app: The role of Azure logic is only to capture the message and push it to an event hub “topic”.
  3. EventHub: EventHub is there to host the events for real-time processing, a specific setting called data capture allows to export the data onto an Azure Blob Storage or DataLake Storage.
  4. DataLake Storage: Provides a long term storage for the data pushed to Event Hub

--

--

Julien Kervizic
Hacking Analytics

Living at the interstice of business, data and technology | Head of Data at iptiQ by SwissRe | previously at Facebook, Amazon | julienkervizic@gmail.com