:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(web-analytics): tag external clicks queries with distinct query_type (#58935)
Lucas Ricoy4c12359ab346
diff --git a/posthog/hogql_queries/web_analytics/external_clicks.py b/posthog/hogql_queries/web_analytics/external_clicks.pyindex 709c61699e77..7bbd99c7b5fc 100644--- a/posthog/hogql_queries/web_analytics/external_clicks.py+++ b/posthog/hogql_queries/web_analytics/external_clicks.py@@ -38,7 +38,7 @@ class WebExternalClicksTableQueryRunner(WebAnalyticsQueryRunner[WebExternalClickelse:url_expr = ast.Field(chain=["properties", "$external_click_url"])- with self.timings.measure("stats_table_query"):+ with self.timings.measure("external_clicks_query"):query = parse_select("""SELECT@@ -113,7 +113,7 @@ GROUP BY "context.columns.url"def _calculate(self):query = self.to_query()response = self.paginator.execute_hogql_query(- query_type="stats_table_query",+ query_type="external_clicks_query",query=query,team=self.team,timings=self.timings,diff --git a/products/web_analytics/dags/cache_warming.py b/products/web_analytics/dags/cache_warming.pyindex 3152e1bc30c1..b8af491ec367 100644--- a/products/web_analytics/dags/cache_warming.py+++ b/products/web_analytics/dags/cache_warming.py@@ -82,7 +82,8 @@ def queries_to_keep_fresh('web_goals_query','web_overview_preaggregated_query','web_overview_query',- 'web_vitals_path_breakdown_query'+ 'web_vitals_path_breakdown_query',+ 'external_clicks_query'))AND query_json_raw != ''