: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
{
"cache_key": "cache_ffcae1d8084f585670caee559af58a79",
"cache_target_age": "2024-07-10T09:38:27.761334Z",
"columns": [
"context.columns.count",
"context.columns.channel_type",
"context.columns.referring_domain",
"context.columns.utm_source",
"context.columns.utm_medium",
"context.columns.utm_campaign",
"context.columns.ad_ids",
"context.columns.example_entry_urls"
],
"error": null,
"hasMore": false,
"hogql": "SELECT\n count() AS `context.columns.count`,\n $channel_type AS `context.columns.channel_type`,\n $entry_referring_domain AS `context.columns.referring_domain`,\n $entry_utm_source AS `context.columns.utm_source`,\n $entry_utm_medium AS `context.columns.utm_medium`,\n topK(10)($entry_utm_campaign) AS `context.columns.utm_campaign`,\n topK(10)(nullIf(arrayStringConcat([if(isNotNull($entry_gclid), 'gclid', NULL), if(isNotNull($entry_gad_source), 'gad_source', NULL)], ','), '')) AS `context.columns.ad_ids`,\n topK(10)($entry_current_url) AS `context.columns.example_entry_urls`\nFROM\n sessions\nWHERE\n and(1, 1, less($start_timestamp, toDateTime('2024-07-10 09:38:12.535618')), greaterOrEquals($start_timestamp, toDateTime('2024-07-03 09:38:12.535669')))\nGROUP BY\n `context.columns.channel_type`,\n `context.columns.referring_domain`,\n `context.columns.utm_source`,\n `context.columns.utm_medium`\nORDER BY\n `context.columns.count` DESC\nLIMIT 101\nOFFSET 0",
"is_cached": true,
"last_refresh": "2024-07-10T09:38:12.761334Z",
"limit": 100,
"modifiers": {
"bounceRatePageViewMode": "count_pageviews",
"dataWarehouseEventsModifiers": null,
"debug": null,
"inCohortVia": "auto",
"materializationMode": "legacy_null_as_null",
"optimizeJoinedFilters": false,
"personsArgMaxVersion": "auto",
"personsJoinMode": null,
"personsOnEventsMode": "disabled",
"s3TableUseInvalidColumns": null,
"sessionTableVersion": "v2"
},
"next_allowed_client_refresh": "2024-07-10T09:39:12.761339Z",
"offset": 0,
"query_status": {
"complete": false,
"end_time": null,
"error": false,
"error_message": null,
"expiration_time": null,
"id": "817cdeac-13ef-490c-b64c-9ace3990f598",
"labels": null,
"query_async": true,
"query_progress": null,
"results": null,
"start_time": "2024-07-10T10:06:19.839326Z",
"task_id": "90e54ce6-f8b1-4cb7-9af7-3d2f66116452",
"team_id": 1
},
"results": [
[
17,
"Unknown",
"localhost:8000",
null,
null,
[],
[],
[
"http://localhost:8000/project/1/web/session-attribution-debugger",
"http://localhost:8000/project/1/web/session-attribution-explorer",
"http://localhost:8000/project/1/insights/new",
"http://localhost:8000/project/1/web/session-attribution-explorer?filters=%5B%7B%22key%22%3A%22%24entry_pathname%22%2C%22value%22%3A%5B%22%2Ffiles%2F%22%5D%2C%22operator%22%3A%22exact%22%2C%22type%22%3A%22session%22%7D%5D",
"http://localhost:8000/login?next=/project/1/web",
"http://localhost:8000/project/1/web/session-attribution-explorer?properties=%5B%7B%22key%22%3A%22%24channel_type%22%2C%22value%22%3A%5B%22Referral%22%5D%2C%22operator%22%3A%22exact%22%2C%22type%22%3A%22session%22%7D%5D&dateRange=%7B%22date_from%22%3A%22dStart%22%7D",
"http://localhost:8000/project/1/data-management/events"
]
],
[
6,
"Direct",
"$direct",
null,
null,
[],
[],
[
"http://localhost:8000/",
"http://localhost:8000/login?next=/",
"http://localhost:8000/project/1/web/session-attribution-explorer?dateRange=%7B%22date_from%22%3A%22-180d%22%7D"
]
]
],
"timezone": "UTC",
"timings": [
{
"k": "./session_attribution_query_runner",
"t": 0.00008904199057724327
},
{
"k": "./parse_select_cpp",
"t": 0.018147832990507595
},
{
"k": "./query",
"t": 0.0003516669967211783
},
{
"k": "./replace_placeholders",
"t": 0.0007442920032190159
},
{
"k": "./max_limit",
"t": 0.000022374995751306415
},
{
"k": "./hogql/prepare_ast/clone",
"t": 0.0001059580099536106
},
{
"k": "./hogql/prepare_ast/create_hogql_database",
"t": 0.03962483300711028
},
{
"k": "./hogql/prepare_ast/resolve_types",
"t": 0.0003752080083359033
},
{
"k": "./hogql/prepare_ast",
"t": 0.04015908399014734
},
{
"k": "./hogql/print_ast/printer",
"t": 0.0002745000092545524
},
{
"k": "./hogql/print_ast",
"t": 0.0002916249941335991
},
{
"k": "./hogql",
"t": 0.040463582990923896
},
{
"k": "./print_ast/create_hogql_database",
"t": 0.0375871249998454
},
{
"k": "./print_ast/resolve_types",
"t": 0.0003574169968487695
},
{
"k": "./print_ast/resolve_property_types",
"t": 0.00029016700864303857
},
{
"k": "./print_ast/resolve_lazy_tables",
"t": 0.03512458399927709
},
{
"k": "./print_ast/swap_properties",
"t": 0.0009043330064741895
},
{
"k": "./print_ast/printer",
"t": 0.0018909170030383393
},
{
"k": "./print_ast",
"t": 0.07628516700060572
},
{
"k": "./clickhouse_execute",
"t": 0.10822070798894856
},
{
"k": ".",
"t": 0.2550588330050232
}
],
"types": [
["context.columns.count", "UInt64"],
["context.columns.channel_type", "String"],
["context.columns.referring_domain", "Nullable(String)"],
["context.columns.utm_source", "Nullable(String)"],
["context.columns.utm_medium", "Nullable(String)"],
["context.columns.utm_campaign", "Array(String)"],
["context.columns.ad_ids", "Array(String)"],
["context.columns.example_entry_urls", "Array(String)"]
]
}