: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_b80cb541a5183eaf621d6ea4a1ddaf07",
"cache_target_age": "2025-01-21T01:17:20.311895Z",
"calculation_trigger": null,
"error": "",
"hasMore": false,
"hogql": "SELECT\n arrayMap(number -> plus(toStartOfDay(assumeNotNull(toDateTime('2025-01-06 00:00:00'))), toIntervalDay(number)), range(0, plus(coalesce(dateDiff('day', toStartOfDay(assumeNotNull(toDateTime('2025-01-06 00:00:00'))), toStartOfDay(assumeNotNull(toDateTime('2025-01-20 23:59:59'))))), 1))) AS date,\n arrayMap(_match_date -> arraySum(arraySlice(groupArray(ifNull(count, 0)), indexOf(groupArray(day_start) AS _days_for_count, _match_date) AS _index, plus(minus(arrayLastIndex(x -> equals(x, _match_date), _days_for_count), _index), 1))), date) AS total\nFROM\n (SELECT\n sum(total) AS count,\n day_start\n FROM\n (SELECT\n count(DISTINCT e.person_id) AS total,\n toStartOfDay(timestamp) AS day_start\n FROM\n events AS e SAMPLE 1\n WHERE\n and(greaterOrEquals(timestamp, toStartOfDay(assumeNotNull(toDateTime('2025-01-06 00:00:00')))), lessOrEquals(timestamp, assumeNotNull(toDateTime('2025-01-20 23:59:59'))), equals(event, '$pageview'))\n GROUP BY\n day_start)\n GROUP BY\n day_start\n ORDER BY\n day_start ASC)\nORDER BY\n arraySum(total) DESC\nLIMIT 50000\nUNION ALL\nSELECT\n arrayMap(number -> plus(toStartOfDay(assumeNotNull(toDateTime('2024-12-23 00:00:00'))), toIntervalDay(number)), range(0, plus(coalesce(dateDiff('day', toStartOfDay(assumeNotNull(toDateTime('2024-12-23 00:00:00'))), toStartOfDay(assumeNotNull(toDateTime('2025-01-06 23:59:59'))))), 1))) AS date,\n arrayMap(_match_date -> arraySum(arraySlice(groupArray(ifNull(count, 0)), indexOf(groupArray(day_start) AS _days_for_count, _match_date) AS _index, plus(minus(arrayLastIndex(x -> equals(x, _match_date), _days_for_count), _index), 1))), date) AS total\nFROM\n (SELECT\n sum(total) AS count,\n day_start\n FROM\n (SELECT\n count(DISTINCT e.person_id) AS total,\n toStartOfDay(timestamp) AS day_start\n FROM\n events AS e SAMPLE 1\n WHERE\n and(greaterOrEquals(timestamp, toStartOfDay(assumeNotNull(toDateTime('2024-12-23 00:00:00')))), lessOrEquals(timestamp, assumeNotNull(toDateTime('2025-01-06 23:59:59'))), equals(event, '$pageview'))\n GROUP BY\n day_start)\n GROUP BY\n day_start\n ORDER BY\n day_start ASC)\nORDER BY\n arraySum(total) DESC\nLIMIT 50000",
"is_cached": false,
"last_refresh": "2025-01-20T23:17:20.311895Z",
"modifiers": {
"bounceRateDurationSeconds": null,
"bounceRatePageViewMode": "uniq_page_screen_autocaptures",
"customChannelTypeRules": [],
"dataWarehouseEventsModifiers": [],
"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:32:20.311895Z",
"query_status": null,
"results": [
{
"data": [
22938, 24418, 23817, 23910, 20335, 9312, 17801, 25286, 25401, 25335, 25473, 21397, 9582, 18421, 20439
],
"labels": [
"6-Jan-2025",
"7-Jan-2025",
"8-Jan-2025",
"9-Jan-2025",
"10-Jan-2025",
"11-Jan-2025",
"12-Jan-2025",
"13-Jan-2025",
"14-Jan-2025",
"15-Jan-2025",
"16-Jan-2025",
"17-Jan-2025",
"18-Jan-2025",
"19-Jan-2025",
"20-Jan-2025"
],
"days": [
"2025-01-06",
"2025-01-07",
"2025-01-08",
"2025-01-09",
"2025-01-10",
"2025-01-11",
"2025-01-12",
"2025-01-13",
"2025-01-14",
"2025-01-15",
"2025-01-16",
"2025-01-17",
"2025-01-18",
"2025-01-19",
"2025-01-20"
],
"count": 313865,
"label": "$pageview",
"filter": {
"insight": "TRENDS",
"properties": [],
"filter_test_accounts": false,
"date_to": "2025-01-20T23:59:59.999999-08:00",
"date_from": "2025-01-06T00:00:00-08:00",
"entity_type": "events",
"interval": "day",
"aggregationAxisFormat": "numeric",
"display": "ActionsLineGraph",
"resultCustomizationBy": "value",
"showAlertThresholdLines": false,
"showLegend": false,
"showPercentStackView": false,
"showValuesOnSeries": false,
"smoothingIntervals": 1,
"yAxisScaleType": "linear"
},
"action": {
"days": [
"2025-01-06T00:00:00-08:00",
"2025-01-07T00:00:00-08:00",
"2025-01-08T00:00:00-08:00",
"2025-01-09T00:00:00-08:00",
"2025-01-10T00:00:00-08:00",
"2025-01-11T00:00:00-08:00",
"2025-01-12T00:00:00-08:00",
"2025-01-13T00:00:00-08:00",
"2025-01-14T00:00:00-08:00",
"2025-01-15T00:00:00-08:00",
"2025-01-16T00:00:00-08:00",
"2025-01-17T00:00:00-08:00",
"2025-01-18T00:00:00-08:00",
"2025-01-19T00:00:00-08:00",
"2025-01-20T00:00:00-08:00"
],
"id": "$pageview",
"type": "events",
"order": 0,
"name": "$pageview",
"custom_name": "Unique visitors",
"math": "dau",
"math_property": null,
"math_hogql": null,
"math_group_type_index": null,
"properties": {}
},
"compare": true,
"compare_label": "current"
},
{
"data": [
16719, 11526, 8331, 13021, 12876, 7616, 14604, 14756, 9937, 9875, 18814, 16182, 8505, 17010, 22936
],
"labels": [
"23-Dec-2024",
"24-Dec-2024",
"25-Dec-2024",
"26-Dec-2024",
"27-Dec-2024",
"28-Dec-2024",
"29-Dec-2024",
"30-Dec-2024",
"31-Dec-2024",
"1-Jan-2025",
"2-Jan-2025",
"3-Jan-2025",
"4-Jan-2025",
"5-Jan-2025",
"6-Jan-2025"
],
"days": [
"2024-12-23",
"2024-12-24",
"2024-12-25",
"2024-12-26",
"2024-12-27",
"2024-12-28",
"2024-12-29",
"2024-12-30",
"2024-12-31",
"2025-01-01",
"2025-01-02",
"2025-01-03",
"2025-01-04",
"2025-01-05",
"2025-01-06"
],
"count": 202708,
"label": "$pageview",
"filter": {
"insight": "TRENDS",
"properties": [],
"filter_test_accounts": false,
"date_to": "2025-01-20T23:59:59.999999-08:00",
"date_from": "2025-01-06T00:00:00-08:00",
"entity_type": "events",
"interval": "day",
"aggregationAxisFormat": "numeric",
"display": "ActionsLineGraph",
"resultCustomizationBy": "value",
"showAlertThresholdLines": false,
"showLegend": false,
"showPercentStackView": false,
"showValuesOnSeries": false,
"smoothingIntervals": 1,
"yAxisScaleType": "linear"
},
"action": {
"days": [
"2025-01-06T00:00:00-08:00",
"2025-01-07T00:00:00-08:00",
"2025-01-08T00:00:00-08:00",
"2025-01-09T00:00:00-08:00",
"2025-01-10T00:00:00-08:00",
"2025-01-11T00:00:00-08:00",
"2025-01-12T00:00:00-08:00",
"2025-01-13T00:00:00-08:00",
"2025-01-14T00:00:00-08:00",
"2025-01-15T00:00:00-08:00",
"2025-01-16T00:00:00-08:00",
"2025-01-17T00:00:00-08:00",
"2025-01-18T00:00:00-08:00",
"2025-01-19T00:00:00-08:00",
"2025-01-20T00:00:00-08:00"
],
"id": "$pageview",
"type": "events",
"order": 0,
"name": "$pageview",
"custom_name": "Unique visitors",
"math": "dau",
"math_property": null,
"math_hogql": null,
"math_group_type_index": null,
"properties": {}
},
"compare": true,
"compare_label": "previous"
}
],
"timezone": "US/Pacific",
"timings": []
}