diff --git a/posthog/hogql_queries/experiments/experiment_funnels_query_runner.py b/posthog/hogql_queries/experiments/experiment_funnels_query_runner.py index edd8b0f1f91f0..f5cabcbe74ecc 100644 --- a/posthog/hogql_queries/experiments/experiment_funnels_query_runner.py +++ b/posthog/hogql_queries/experiments/experiment_funnels_query_runner.py @@ -16,6 +16,7 @@ ExperimentFunnelsQueryResponse, ExperimentSignificanceCode, ExperimentVariantFunnelsBaseStats, + FunnelLayout, FunnelsFilter, FunnelsQuery, FunnelsQueryResponse, @@ -113,9 +114,10 @@ def _prepare_funnel_query(self) -> FunnelsQuery: breakdown_type="event", ) - prepared_funnels_query.funnelsFilter = FunnelsFilter( - funnelVizType="steps", - ) + # Set the layout to vertical + if prepared_funnels_query.funnelsFilter is None: + prepared_funnels_query.funnelsFilter = FunnelsFilter() + prepared_funnels_query.funnelsFilter.layout = FunnelLayout.VERTICAL return prepared_funnels_query