Skip to content
LogZuno

Event tracking6 min readUpdated

Event-driven analytics and how it works

Why events beat pageviews and database tables for product questions, how an event model works, and how to design one that lasts.

Event-driven analytics is an approach where every measurement starts from an event: a timestamped record that something happened, such as Signed up, Exported report or Payment failed. Instead of counting pageviews and sessions and inferring behaviour, you record the behaviour directly and build every report on top of it.

This guide explains what event-driven analytics is, how it differs from session-based analytics, what you can build with it, how to design the events, and the pitfalls to avoid.

What is event-driven analytics?

In an event-driven model, the event is the unit of data. Each event has:

  • a name that describes the action (Created project);
  • a timestamp;
  • an actor: the user who did it and, for B2B products, their account;
  • properties that describe the context (plan: growth, template: kanban).

Every report, from daily active users to a seven-step funnel, is a query over these events. Nothing is pre-aggregated in a way that loses detail, so new questions can be answered from data you already have.

LogZuno uses exactly this shape; events in LogZuno shows the fields, and identifying users explains how events join to people.

How is it different from session-based analytics?

Classic web analytics is organised around sessions and pageviews. It answers "how many visits, from where, to which pages?" well. It struggles with "did this person get value, and did they come back?", because a session ends when the browser closes and a person may use three devices.

Session-basedEvent-driven
UnitSession, pageviewEvent
IdentityAnonymous visitorIdentified user and account
Best atTraffic, channels, contentBehaviour, funnels, retention
SourceBrowser scriptBackend, apps, browser, servers
New questionOften needs new trackingOften answerable from existing events

The two aren't rivals. An event-driven tool can record pageviews as events too, which is how LogZuno joins web analytics with product analytics in one project. For the wider comparison, see product analytics vs web analytics.

What can you build from events?

Five families of report cover most needs, and all of them come from the same event stream:

  1. Trends. Count events, unique users or unique accounts over time; sum or average a property such as amount; compare with the previous period.
  2. Funnels. Follow each person through a sequence of events, in order, within a conversion window.
  3. Retention. Group people by when they first did something and measure who did something else later.
  4. Frequency. How many days in a period each person was active: the power-user curve. See power users.
  5. Segments and profiles. Lists of people defined by what they did or didn't do, and each person's timeline.

Because every report reads the same events, numbers agree across charts. The activation rate on the funnel and the count on the trend come from one source.

Events can come from anywhere

A key advantage of the event-driven model is that sources don't matter. An event is an event whether it came from:

  • your backend after a payment webhook;
  • your web app when someone saves a document;
  • a desktop or mobile app over HTTP;
  • a cron job that finishes a nightly import;
  • your server or CDN, recording which AI assistants fetched which pages.

That last one is new and increasingly important: AI assistants such as ChatGPT read pages without running any browser script, so only a server-side source sees them. See AI visibility.

Designing events well

The model is only as good as the events. Five rules:

  1. Name actions, not interface elements. Exported report, not export_btn.
  2. Prefer properties to new events. One Feature used event with a feature property.
  3. Send critical events from the server. They can't be blocked or lost.
  4. Make events idempotent. Include an ID so retries aren't double-counted.
  5. Keep a tracking plan. A short written list of every event, its meaning and owner.

Our event tracking examples give starting sets for seven kinds of business, and product analytics best practices covers the process around them.

Event-driven analytics in real time

Because each event is a discrete record, an event-driven system can act on it the moment it arrives, not only in reports later. That enables:

  • a live feed of what's happening right now;
  • instant alerts when a single event matches a rule, such as a failed payment over $100;
  • threshold alerts when a count crosses a line, such as errors per hour.

This is the practical difference between analytics you read and analytics that tells you. Real-time event tracking goes deeper.

Event-driven analytics vs a data warehouse

Many teams already have a data warehouse. Why add an event-driven analytics tool? Because they solve different problems.

A warehouse is the place for joining everything: billing, CRM, support tickets, product events. It's flexible and powerful, and it needs SQL, modelling and someone to maintain it. Questions are answered in hours or days, by the people who can write queries.

An event-driven analytics tool is specialised. It knows what a funnel, a cohort and an active user are, so anyone on the team can answer behavioural questions in minutes without writing SQL. It works on fresh data, often within seconds, and it can notify you when something happens.

Data warehouseEvent-driven analytics tool
Who uses itAnalysts and engineersEveryone on the team
Speed to an answerHours to daysMinutes
FreshnessUsually hourly or daily loadsSeconds
Funnels and retentionHand-written SQLBuilt in
AlertsUsually externalBuilt in

The two work well together. Send events to the analytics tool for day-to-day product questions and alerts, and export them to the warehouse for the cross-system analysis that needs billing and CRM data. LogZuno exports any table or chart as CSV, and the REST API returns chart results as JSON.

Pitfalls to avoid

  • Event explosion. Thousands of event names nobody understands. Keep the set small.
  • Unstable meanings. An event whose trigger changes silently breaks every historical comparison.
  • Missing identity. Events without a user or account can be counted but not followed.
  • Personal data in properties. Use IDs, not emails or account numbers.
  • Ignoring automation. Bots generate events too. Count people separately from automated traffic.

A short example

A team running a project tool tracks six events: Signed up, Created project, Invited teammate, Feature used, Payment received and Subscription cancelled. From those alone they build an activation funnel, weekly retention, feature adoption by plan, revenue by plan, and an alert to Slack for every cancellation with its reason. When the cancellation reasons cluster around one missing integration, the roadmap writes itself. No session data was needed for any of it, and every chart was built in an afternoon by the product manager, without a single line of SQL or a ticket to the data team.

Getting started with event-driven analytics in LogZuno

LogZuno is an event-driven analytics platform: send events from any source with one HTTP request, see them in a live feed within seconds, and build trends, funnels, retention, segments and dashboards on the same data. Start with the quickstart, explore product analytics, or see the glossary for the terms used here.

Key takeaways

  • Event-driven analytics builds every report from timestamped records of actions.
  • It answers behaviour and retention questions that session-based analytics can't.
  • Events can come from any source, including servers that see AI assistants.
  • Small, well-named, server-sent, idempotent events make the model work.

Send your first event today.

7 days free on any plan, up to 500 events. Then from $17 a month. Cancel during the trial and you pay nothing.