diff --git a/posthog/hogql_queries/web_analytics/web_overview.py b/posthog/hogql_queries/web_analytics/web_overview.py index 6e7e3ac7d6bd5..cb17930afc752 100644 --- a/posthog/hogql_queries/web_analytics/web_overview.py +++ b/posthog/hogql_queries/web_analytics/web_overview.py @@ -159,7 +159,7 @@ def event_type_expr(self) -> ast.Expr: op=ast.CompareOperationOp.Eq, left=ast.Field(chain=["event"]), right=ast.Constant(value="$pageview") ) - if self.conversion_goal_expr: + if self.conversion_goal_expr and self.conversion_goal_expr != ast.Constant(value=None): return ast.Call(name="or", args=[pageview_expr, self.conversion_goal_expr]) else: return pageview_expr