The latest from the PostHog community

What engineers get wrong about analytics

Mar 11, 2024

Regular readers will know we think engineers today need to get involved in product decisions, talk to users, and analyze usage data. It’s a core part of how we designed our company for speed.

But not all engineers are totally comfortable with using analytics data day-to-day. Often it’s due to working at companies where data is distorted as evidence for bad decisions, or frustration at dealing with overly complex implementations.

Whatever the reasons, these are some of the most common complaints we hear and how to deal with them.

This week’s theme is: Getting over your fear of data.

This article was first published in our newsletter, Product for Engineers. It's all about helping engineers and founders build better products by learning product skills. Subscribe here.

1. “It’s too early for analytics”

Early-stage startups who want to ship as fast as possible often skip implementing analytics, thinking it’ll slow them down.This makes sense for pre-launch products, but launching without analytics because “it’s too early” is a false economy.

Once you launch, priorities shift from shipping as fast as possible to shipping the right thing as fast as possible.

This is impossible without analytics.

Flashlight

Analytics are your flashlight.

It can’t guarantee success, but it will show you where you’re going, and whether users are getting real value from your product.

The longer you wait, the more time you’ll waste figuring out what to build.

Further reading: The 80/20 of early-stage startup analytics

2. “It’s too complicated”

Engineers often tell us they’ve found setting up analytics complex and time consuming. This is mostly due to:

  • Modern data stack evangelists convincing people you need 10 different tools to do “proper” analytics, and to pay a consultant to set it all up for you.

  • Legacy analytics tools that enforce complicated installation processes and manual event instrumentation before you can learn anything.

  • Numerous online guides recommending you create an elaborate plan, like a customer journey map, tracking plan, or analytics strategy.

Modern Data Stack

There’s a time and place for all this, but it’s better to start small:

  1. Choose a specific product or feature.

  2. Track its usage with autocapture and/or custom events.

  3. Visualize this data with trends and retention graphs.

  4. Ship features that improve those visualizations.

This gets the basics sorted and helps you quickly understand what’s useful and what you’re missing. Then you can start tracking more complex custom events and doing more advanced analysis.

3. “It distracts me from shipping”

Engineers are busy. At best, analytics is part of your job. You might realize you should be checking analytics, but aren’t sure about when. Worse still is checking it all the time and not learning anything.

Engineers are judged by what they ship, so the most leveraged time to engage with analytics is right after you ship something:

  1. Watch sessions to see how people are using your new feature.

  2. Monitor error rates to check for new bugs you need to squash.

  3. Check for changes in key metrics, like adoption and activation trends.

Being intentional about when and how you engage with analytics data will ensure you get full value from it, and stop you obsessing over small changes in vanity metrics.

Read more: How we build features users love (really fast)

4. “Session replays are for marketers”

Many session replay tools brand themselves as wishy-washy “customer experience” or “digital insight” platforms. Tools built for product managers and marketers.

This is unfortunate because the high information density of session replays make them incredibly useful to engineers, because they:

  1. Identify big, obvious problems. Session replays uncover show-stopping bugs, unexpected behavior, and issues preventing people from getting value from your product. Identifying and fixing these can dramatically improve your product.

  2. Connect behavior to events. When starting with analytics, it can be hard to understand how data represents behavior. Replays help you make this connection by showing events alongside real behavior.

Session replay

Next time you ship a new feature, watch replays of its usage. You might find UX issues to tidy up, use cases to connect, or unexpected behaviors you should investigate.

5. “The numbers are all that matters”

Engineers are used to judging their work based on quantitive data like query speed, load time, test coverage, conversion rate, and uptime. But relying on this data alone is like tying one arm behind your back.

To get it back, you need to get familiar with qualitative data sources like:

  • Surveys: It’s often faster to validate something by asking users if they want it first – we chose our first data warehouse connectors (Stripe and Hubspot) from asking users. You can also create a powerful feedback looping using NPS or PMF surveys to track satisfaction over time, as Superhuman famously demonstrated.

  • User interviews: Talking to users helps engineers understand use cases and dive into details. Our session replay feature, for example, came from an engineer talking to a user and realizing the best solution for them was integrating it with our existing product analytics tool.

“The customer isn’t always right” is a lazy get out clause. Yes, you shouldn’t slavishly follow every suggestion you receive, but combining qualitative and qualitative data will help you build better products.

Read more: 10x engineers talk to users

6. “Analytics data is unreliable”

This is a common complaint as companies grow and collect more data, especially if they’ve deployed a complicated data stack they’re struggling to manage.

But this is a fixable problem. Anna Debenham, a developer, product leader and startup advisor, suggests simple solutions like:

  1. Enforcing consistent naming conventions. For example, only using lowercase, present tense, and snake case for your custom events – i.e. click_signup_button as opposed to Signup-Button-Clicked.

  2. Deploying a reverse proxy. This limits the impact of tracking request blockers, improving data quality. Tracking more backend events is a good idea, too.

  3. Versioning your events as your app evolves. So you can easily distinguish between older and newer events, while preserving historical data.

Analytics is some of the most valuable data an organization has. If you find yourself avoiding it because it’s wrong or messy, fixing it is time well spent.

Good reads for product engineers 📖

Words by Ian Vanagas, party parrot evangelist.