Segment analytics with Firebase AB testing

David Dikman
Firebase Developers
4 min readNov 8, 2021

--

Sometimes we want to know not just if but what our segments are up to

Firebase AB testing is an excellent tool to easily get started with AB testing.

It allows you to combine the Firebase remote configuration with Google Analytics to track the performance of your test.

I’ve written about how to do this in practice before so here I will focus on a recent issue I had to solve. How to segment your analytics in more detail using BigQuery.

What the Firebase dashboard is missing

I love how the Firebase AB test dashboard gives you a powerful test comparison without becoming very cluttered.

It breaks down the variants into clear groups and automatically measures the events you have selected.

Example of comparison of view_item events as success criteria

As seen below here, you can even easily measure changes in purchases or ad revenue using the native Google Analytics events.

Example of ad revenue as success criteria of AB test

You can even track counts for different events as additional metrics when setting up your A/B tests, with the caveat that…

--

--

David Dikman
Firebase Developers

Full-stack developer and founder. Writing here and at https://greycastle.se. Currently open for contract work.