JPie

James Espie, Test Specialist

Improving testability by using mixpanel for analytics

30 days of Testability, day six

Analytics

Today’s challenge is:

Explore the output of your applications analytics, how can they help guide your testing?

Mixpanel is our analytics tool of choice - it tells us a bunch about user behaviour.

I don’t want to go and reveal all the analytics we have in Mixpanel. But, I thought I’d go ahead and learn how it’s implemented - the same way I did for Prometheus in the last video.

So, I did just that! I’ve paired up with one of our developers, Bhumika Mishra, to go through some steps of a basic Mixpanel setup.

Here’s the vid!


Setting up Mixpanel

So, that’s how you set up Mixpanel for server side and client side metrics. Easy! I find this useful from two angles:


Mixpanel and testability

How does this feed into the subject of testability?

It feeds into testability by revealing user behaviour. So that when we are testing, we can attempt behave in the same manner.

The easiest example is that Mixpanel might reveal the most common devices users are on. So when testing, we can prioritise those devices.

Of course, the analytics can get much more complex. Which means they way they can influence testability can get much more complex too!


Thanks

As always, thanks for watching, and feedback always welcome!