In Conversion Rate Optimization (CRO) and product analytics, determining the statistical winner of an A/B test is an important milestone. You run a test, and you find that Variant B is the winner!
That’s a great result. But often the immediate next question that naturally pops up is: “Why?” Where exactly did Variant A lose? Did Variant B actually speed up the checkout process, or did it just convince more people to eventually come back? Connecting these deep, time-based behavioral insights directly to the statistical outcome of a variant can sometimes be tricky to configure in standard reporting UIs.
I wanted to build a more helpful solution for this. I’ve overhauled my BigQuery A/B Analyzer architecture to not only track the statistical winner, but to map the exact user journey, identify behavioral friction, and use Google’s Gemini AI to explain it all in plain language.

Here is a look under the hood at the new capabilities.
1. Native Funnel Tracking for Every Variant
Knowing that Variant B won is only half the battle. You need to know where it won.
I’ve integrated dynamic funnel tracking directly into the A/B test SQL engine. Now, when an experiment runs, the pipeline doesn’t just look at the final conversion event. You also have the option to build a multi-step behavioral funnel (e.g., View Item -> Add to Cart -> Checkout -> Purchase) and track the drop-off rates for each step, strictly segmented by the user’s variant exposure.
Even better, the architecture supports variant-specific funnels. If Variant B introduces a completely new checkout flow that skips the ‘Cart’ page entirely, you can map a distinct funnel for Variant B without breaking Variant A’s tracking. This allows you to test entirely different architectural flows against each other, rather than just surface-level UI tweaks.
You can literally see the exact step where a losing variant bleeds its traffic.
2. Solving the “Time to Convert” Skew: Average vs. Median
Using “Average Time” to measure UI friction could be misleading.
Imagine tracking the time between “View Cart” and “Checkout”.
- User A takes 30 seconds.
- User B takes 45 seconds.
- User C gets distracted, closes their laptop, comes back the next day, and takes 24 hours.
If you look at the Average Time, your dashboard will claim the checkout takes 8 hours. It completely destroys the metric.
To solve this, the new engine calculates both the Mean (Average) and the P50 (Median) time between every single funnel step. The Median filters out the 24-hour outlier in the example above, and tells you the true user experience (45 seconds).
But I didn’t throw the Average away. By comparing the two side-by-side, I added a diagnostic that I have called The Time Skew. If the Average is massively higher than the Median, it instantly flags a “Abandonment Return Loop” – meaning users are hitting friction, leaving the site, and returning later to finish.
3. Executive Summaries via Gemini AI
Dashboards full of Z-scores, P-values, and funnel math can be overwhelming for non-technical stakeholders. So, Google’s Gemini LLM was brought directly into the BigQuery pipeline to do the translation.
Using ML.GENERATE_TEXT, Gemini is fed the entire statistical output of the test and the newly generated funnel journey data. But AI is guareded against guessing; strict deterministic guardrails are enforced:
- No Hallucinated Winners: The AI is strictly fed the mathematical outcome (e.g., “Variant A is 10.5% better”) so it never guesses the winner based on total traffic volume.
- Bottleneck Identification: The AI is instructed to look at the funnel drop-off rates and explicitly state exactly where the winning variant outperformed the loser.
- Time Skew Analysis: The AI compares the Median and Average times. If it spots a massive gap, it translates that math into a behavioral insight, warning stakeholders about delayed actions or long-tail return loops.
The Result?
Instead of presenting a complex data table, Data Studio now presents them with an auto-generated, two-paragraph executive summary:
The test has reached the Required Confidence Level for Mean Value, indicating Variant B is the winner, performing 10.5% better than Variant A. Variant B generated a Total Value of 15,200 while Variant A generated 13,975. The target sample size has been met, and we recommend concluding the test.
Looking at the funnel journey, Variant B significantly reduced friction at the ‘Add to Cart’ step, suffering only a 22% drop-off compared to Variant A’s 35%. Furthermore, the ‘Checkout’ step shows an Average completion time of 35 minutes but a Median of just 45 seconds. This severe time skew indicates that a large segment of users are abandoning their carts and returning hours later to complete the purchase, an area ripe for future optimization.
4. Beyond the Linear Checkout: Flexible Behavioral Tracking
While this is built as a “funnel” solution, its flexibility makes it suitable for tracking secondary goals and complex behavioral shifts.
For example, imagine testing a new “Recommended for You” product list on a main product page. The primary goal is to increase clicks on the recommended items. However, you can use the funnel engine to track “Add to Cart” for the main product as a secondary goal, ensuring your new widget isn’t cannibalizing the primary sale.
Other powerful use cases include:
- Onboarding Flows: Did a user watch the tutorial video before completing their profile setup?
- Feature Adoption: If a user engages with a new search filter (Step 1), do they actually view a product (Step 2) and purchase (Step 3) at a higher rate than those using the standard search?
Automated Insight
By combining rigorous statistical math, deep flexible journey mapping, and Large Language Models right inside BigQuery, the solution automates the actual analysis.
The engine handles the math, the AI handles the narrative, and you get to focus on building better user experiences.

Be the first to comment on "Smarter funnel analysis with BigQuery A/B Analyzer"