: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_3dbcd9fb0d569f205781b7c151c83fb8_[{'alias': '/person/<id>', 'regex': '\\\\/person\\\\/[^\\\\/]+'}, {'alias': 'Any Session Recording Route', 'regex': '.*sessionRecordingId=[a-zA-Z]+'}, {'alias': '/insights/<insight_id>', 'regex': '.*\\\\/insights\\\\/[0-9a-zA-Z]+'}, {'alias': '/project/<team_id>', 'regex': '\\\\/project\\\\/\\\\d+'}, {'alias': '/dashboard/<dashboard_id>', 'regex': '\\\\/dashboard\\\\/[0-9]+'}, {'alias': '/feature_flags/<feature_flag_id>', 'regex': '\\\\/feature_flags\\\\/[0-9]+'}, {'alias': '/replay/<replay_id>', 'regex': '\\\\/replay\\\\/[0-9a-f\\\\-]+'}, {'alias': '/cohorts/<cohort_id>', 'regex': '\\\\/cohorts\\\\/[0-9]+'}, {'alias': '/experiments/<experiment_id>', 'regex': '\\\\/experiments\\\\/[0-9]+'}, {'alias': '/surveys/<survey_id>', 'regex': '\\\\/surveys\\\\/[0-9a-f\\\\-]+'}, {'alias': '/events/<event_id>', 'regex': '\\\\/events\\\\/[0-9a-f\\\\-]+'}, {'alias': '/verify_email/<id>', 'regex': '\\\\/verify_email\\\\/[0-9a-f\\\\-]+'}, {'alias': '/community/profiles/<id>', 'regex': '\\\\/community\\\\/profiles\\\\/[0-9]+'}, {'alias': '/notebooks/<notebook_id>', 'regex': '\\\\/notebooks\\\\/[a-zA-Z0-9]+'}, {'alias': '/groups/<id>', 'regex': '\\\\/groups\\\\/[0-9]+\\\\/[a-zA-Z0-9]+'}, {'alias': '/signup/<id>', 'regex': '\\\\/signup\\\\/[0-9a-f\\\\-]+'}, {'alias': '/playlists/<playlist_id>', 'regex': '\\\\/playlists\\\\/[a-zA-Z0-9]+'}, {'alias': '/destinations/<destination_id>', 'regex': '\\\\/destinations?\\\\/[0-9a-zA-Z\\\\-]+'}, {'alias': '/properties/<property_id>', 'regex': '\\\\/properties\\\\/[0-9a-f\\\\-]+'}, {'alias': '/sources/<source_id>', 'regex': '\\\\/sources\\\\/[0-9a-zA-Z\\\\-]+'}, {'alias': '/reset', 'regex': '\\\\/reset\\\\/[0-9a-zA-Z\\\\-]+'}, {'alias': '/actions/<action_id>', 'regex': '\\\\/actions\\\\/[0-9]+'}, {'alias': '/shared-metrics/<metric_id>', 'regex': '\\\\/shared-metrics\\\\/[0-9]+'}]",
"cache_target_age": "2025-01-21T00:57:40.526794Z",
"calculation_trigger": null,
"columns": ["context.columns.breakdown_value", "context.columns.visitors", "context.columns.views"],
"error": null,
"hasMore": true,
"hogql": "SELECT\n breakdown_value AS `context.columns.breakdown_value`,\n tuple(uniq(filtered_person_id), NULL) AS `context.columns.visitors`,\n tuple(sum(filtered_pageview_count), NULL) AS `context.columns.views`\nFROM\n (SELECT\n any(person_id) AS filtered_person_id,\n count() AS filtered_pageview_count,\n properties.$browser AS breakdown_value,\n session.session_id AS session_id,\n any(session.$is_bounce) AS is_bounce,\n min(session.$start_timestamp) AS start_timestamp\n FROM\n events\n WHERE\n and(or(and(greaterOrEquals(timestamp, assumeNotNull(toDateTime('2025-01-06 00:00:00'))), less(timestamp, assumeNotNull(toDateTime('2025-01-20 23:59:59')))), false), or(equals(event, '$pageview'), equals(event, '$screen')), 1, notEquals(breakdown_value, NULL))\n GROUP BY\n session_id,\n breakdown_value)\nGROUP BY\n `context.columns.breakdown_value`\nORDER BY\n `context.columns.visitors` DESC,\n `context.columns.views` DESC,\n `context.columns.breakdown_value` ASC\nLIMIT 11\nOFFSET 0",
"is_cached": true,
"last_refresh": "2025-01-20T22:57:40.526794Z",
"limit": 10,
"modifiers": {
"bounceRateDurationSeconds": null,
"bounceRatePageViewMode": "uniq_page_screen_autocaptures",
"customChannelTypeRules": [
{
"channel_type": "AI",
"combiner": "AND",
"id": "b6332cb7-a32f-4a62-929e-54dc5c37ba1d",
"items": [
{
"id": "90f32f03-2a30-4278-9869-c1f99da6dbe9",
"key": "referring_domain",
"op": "exact",
"value": ["www.perplexity.ai", "chat.openai.com"]
}
]
},
{
"channel_type": "Newsletter",
"combiner": "OR",
"id": "eb1729b9-35a8-4013-bf1b-83bf107feb1f",
"items": [
{
"id": "40b11644-51bd-49ac-a99e-82fc8f734eda",
"key": "referring_domain",
"op": "icontains",
"value": ["substack.com"]
},
{
"id": "e048a56a-eba8-4e59-ad20-cda77883594c",
"key": "utm_source",
"op": "exact",
"value": ["substack", "posthog-newsletter"]
}
]
}
],
"dataWarehouseEventsModifiers": null,
"debug": null,
"inCohortVia": "auto",
"materializationMode": "legacy_null_as_null",
"optimizeJoinedFilters": false,
"personsArgMaxVersion": "auto",
"personsJoinMode": null,
"personsOnEventsMode": "person_id_override_properties_on_events",
"propertyGroupsMode": "optimized",
"s3TableUseInvalidColumns": null,
"sessionTableVersion": "auto",
"useMaterializedViews": true
},
"next_allowed_client_refresh": "2025-01-20T23:12:40.526794Z",
"offset": 0,
"query_status": null,
"results": [
["Chrome", [130638, 128392], [4098916, 4150238]],
["Firefox", [12749, 13105], [279210, 275481]],
["Mobile Safari", [11677, 12044], [83129, 81893]],
["Safari", [8284, 8129], [252689, 255104]],
["Microsoft Edge", [6251, 6482], [170961, 168234]],
["Chrome iOS", [2993, 2851], [29640, 30128]],
["Opera", [740, 712], [17802, 18234]],
["Firefox iOS", [265, 284], [2003, 1892]],
["Samsung Internet", [246, 231], [1506, 1582]],
["Android Mobile", [92, 87], [257, 271]]
],
"samplingRate": null,
"timezone": "US/Pacific",
"timings": [],
"types": [
["context.columns.breakdown_value", "Nullable(String)"],
["context.columns.visitors", "Tuple(UInt64, Nullable(Nothing))"],
["context.columns.views", "Tuple(UInt64, Nullable(Nothing))"]
]
}