Case studies · Integrations & data

Irawo: product analytics you can trust

Analytics built into the Rails app, with clear rules for what counts as a real visitor and tests for the tracking that matters.

Irawo · Full-Stack Engineer, then Product Lead (part-time)

  • Ruby on Rails
  • PostgreSQL
  • SQL
  • JSONB
  • RSpec

Context

Irawo is a learning platform for professionals in francophone Africa (9,400+ learners, 120+ programmes, 200+ workshops). I built this feature myself, while a second developer was on the team.

The challenge

Product decisions need reliable data about how people use the product. But raw traffic is not the same as real people: bots, changing visitor identities, cookies, proxies and different event sources can all distort the numbers. And when tracking code is spread across the app, reports are hard to check.

What I did

I built analytics inside the Rails app instead of relying only on an external tool: event collection, PostgreSQL storage, SQL reports, dashboards and exports. Later I made it more accurate, with bot filtering, a consistent visitor identity across requests and sessions, and IP detection that works behind proxies, and I wrote regression tests for the important tracking cases.

How it works

Events are stored as structured rows with their details in JSONB. Query objects produce the reports behind the dashboards. Raw events are kept separate from activity confirmed by the browser, so it is clear what each number counts. This matters: a dashboard can look precise while counting inconsistent data.

Result

Clear definitions of what is counted, and more transparent reports to support product decisions.