In this post, I’ll walk through how simple it is to do AB testing with Google Analytics and a bit of custom code. I'll show you an example of a successful AB test and some things I learned.
Inspired by @levelsio
Then I plugged this into @neilpatel's AB test calculator, it shows we are statistically significant.

Now that it’s confirmed to be statistically significant, I’ll remove the old code and think of the next AB test to run!
Thanks for reading!
Here’s also 3-minute video that walks through this as well.
loom.com/share/9ff05905…