: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
{
"api_key": "phc_VXRzc3poSG9GZm1JenRianJ6TTJFZGh4OWY2QXzx9f3",
"historical_migration": false,
"batch": [
{
"event": "$pageview",
"distinct_id": "[email protected]",
"timestamp": "2025-07-01T02:55:00Z",
"properties": {
"$autocapture_disabled_server_side": true,
"$session_recording_network_payload_capture": {
"capturePerformance": {
"network_timing": true,
"web_vitals": false,
"web_vitals_allowed_metrics": null
},
"recordBody": true,
"recordHeaders": true
},
"$host": "posthog.example.com",
"$replay_script_config": null,
"$exception_capture_enabled_server_side": false,
"$referring_domain": "$direct",
"$current_url": "https://posthog.example.com/testing",
"$session_entry_url": "https://posthog.example.com/testing",
"$pathname": "/testing",
"$screen_height": 768,
"$feature_flag_request_id": "0198393f-1b8a-7c2e-a269-737351f06167",
"$is_identified": true,
"$viewport_height": 599,
"$replay_minimum_duration": 15000,
"$browser_language": "es-ES",
"$feature_flag_payloads": {},
"$os": "Windows",
"$timezone_offset": 300,
"$sdk_debug_current_session_duration": null,
"$timezone": "America/Bogota",
"$referrer": "$direct",
"$active_feature_flags": [
"survey-targeting-c34291e772"
],
"$feature/survey-targeting-bb7ab5ac7e-custom": false,
"$configured_session_timeout_ms": 3600000,
"$pageview_id": "0198395d-cb33-7497-a2c7-d2a54cdea918",
"$viewport_width": 1366,
"$session_id": "0198395d-f729-7df2-aea7-3456af7343eb",
"$device_type": "Desktop",
"$session_recording_masking": {
"maskAllInputs": false
},
"$dead_clicks_enabled_server_side": false,
"$session_entry_referrer": "$direct",
"$feature/survey-targeting-foobar": true,
"$recording_status": "buffering",
"$os_version": "10",
"$sdk_debug_session_start": 1753306906004,
"$sdk_debug_retry_queue_size": 0,
"$device_id": "0198395e-6a8d-7b5f-aacb-aea40cf448fa",
"$web_vitals_enabled_server_side": false,
"$web_vitals_allowed_metrics": null,
"$session_entry_pathname": "/testing",
"$insert_id": "ghi567jkl890",
"$lib": "web",
"$replay_sample_rate": null,
"$sdk_debug_replay_internal_buffer_length": 0,
"$window_id": "0198395e-c51f-7389-ab21-c04a88a053c0",
"$sdk_debug_replay_internal_buffer_size": 0,
"$session_recording_canvas_recording": {
"enabled": true,
"fps": 3,
"quality": "0.4"
},
"$console_log_recording_enabled_server_side": true,
"$lib_custom_api_host": "https://posthog.example.com/testing",
"$session_entry_referring_domain": "$direct",
"$screen_width": 1366,
"title": "CoolApp",
"$user_id": "[email protected]",
"$session_entry_host": "posthog.example.com",
"$lib_version": "1.2.3",
"$config_defaults": "unset",
"$time": 1753306906.2,
"$initialization_time": "2025-07-01T00:00:00Z",
"$lib_rate_limit_remaining_tokens": 99,
"$browser_language_prefix": "es",
"$browser": "Chrome",
"$browser_version": 138,
"$raw_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36",
"$set_once": {
"$initial_ttclid": null,
"$host": "posthog.example.com",
"fbclid": null,
"$initial_gbraid": null,
"$initial_wbraid": null,
"utm_source": null,
"dclid": null,
"gclsrc": null,
"$initial_gad_source": null,
"$initial_mc_cid": null,
"$initial_irclid": null,
"utm_campaign": null,
"$initial_host": "posthog.example.com",
"$initial_utm_content": null,
"$initial_utm_term": null,
"gclid": null,
"$pathname": "/testing",
"utm_term": null,
"_kx": null,
"$initial_sccid": null,
"igshid": null,
"$referring_domain": "$direct",
"qclid": null,
"$initial_qclid": null,
"$initial__kx": null,
"$referrer": "$direct",
"$initial_dclid": null,
"twclid": null,
"$initial_fbclid": null,
"gbraid": null,
"$initial_igshid": null,
"utm_content": null,
"$initial_utm_campaign": null,
"$initial_pathname": "/testing",
"$initial_rdt_cid": null,
"$initial_epik": null,
"ttclid": null,
"rdt_cid": null,
"wbraid": null,
"$initial_msclkid": null,
"$initial_current_url": "https://posthog.example.com/testing",
"epik": null,
"$initial_referrer": "$direct",
"utm_medium": null,
"$initial_gclid": null,
"sccid": null,
"mc_cid": null,
"msclkid": null,
"gad_source": null,
"$current_url": "https://posthog.example.com/testing",
"$initial_utm_source": null,
"irclid": null,
"$initial_twclid": null,
"$initial_gclsrc": null,
"$initial_li_fat_id": null,
"$initial_utm_medium": null,
"li_fat_id": null,
"$initial_referring_domain": "$direct"
}
}
},
{
"event": "$pageleave",
"distinct_id": "[email protected]",
"timestamp": "2025-07-01T03:00:00Z",
"properties": {
"$prev_pageview_id": "01983921-5987-7c35-b1d3-71edaae744be",
"$os": "Windows",
"$recording_status": "buffering",
"$prev_pageview_last_scroll_percentage": 0.6716417910447762,
"$lib_rate_limit_remaining_tokens": 99,
"$window_id": "01983928-b845-7837-b93a-30057cbfd5ac",
"$viewport_height": 599,
"$browser_version": 138,
"$initialization_time": "2025-07-01T00:00:00Z",
"$web_vitals_enabled_server_side": false,
"$exception_capture_enabled_server_side": false,
"$feature_flag_request_id": "01983928-b845-7837-b93a-30057cbfd5ac",
"$console_log_recording_enabled_server_side": true,
"$prev_pageview_max_content_percentage": 0.7730789066529139,
"$lib_version": "1.2.3",
"$prev_pageview_last_scroll": 900,
"$device_id": "0198392d-b861-7907-a10e-de85359340c7",
"$referring_domain": "$direct",
"$sdk_debug_replay_linked_flag_trigger_status": "trigger_disabled",
"$browser_language": "es-419",
"$dead_clicks_enabled_server_side": false,
"$prev_pageview_max_scroll": 900,
"$current_url": "https://posthog.example.com/testing",
"$session_entry_url": "https://posthog.example.com/testing",
"$browser": "Chrome",
"$timezone": "America/Denver",
"$prev_pageview_last_content": 1499,
"$sdk_debug_replay_url_trigger_status": "trigger_pending",
"$replay_minimum_duration": 10000,
"$active_feature_flags": [],
"$pageview_id": "0198392e-c703-7f29-bbe0-16d7775445f9",
"$autocapture_disabled_server_side": false,
"$session_entry_host": "posthog.example.com",
"$prev_pageview_last_content_percentage": 0.7730789066529139,
"$raw_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36",
"$time": 1753305291.695,
"$browser_language_prefix": "es",
"$sdk_debug_replay_remote_trigger_matching_config": null,
"$lib": "web",
"$session_entry_pathname": "/testing",
"$prev_pageview_max_scroll_percentage": 0.6716417910447762,
"$replay_script_config": null,
"$host": "posthog.example.com",
"$session_id": "0198392f-a0b0-771a-ae72-0b892aa6191a",
"$pathname": "/testing",
"$sdk_debug_current_session_duration": 99702,
"$config_defaults": "unset",
"$configured_session_timeout_ms": 1800000,
"$timezone_offset": 360,
"$session_recording_network_payload_capture": {
"capturePerformance": {
"network_timing": true,
"web_vitals": false
}
},
"$session_recording_canvas_recording": {},
"$sdk_debug_session_start": 1753305190397,
"$sdk_debug_replay_internal_buffer_length": 150,
"$device_type": "Desktop",
"$referrer": "$direct",
"$replay_sample_rate": null,
"$viewport_width": 1366,
"$session_entry_referring_domain": "posthog.example.com",
"$feature_flag_payloads": {},
"$sdk_debug_retry_queue_size": 0,
"$is_identified": true,
"$os_version": "10",
"$session_recording_masking": {
"maskAllInputs": false
},
"$screen_height": 768,
"$sdk_debug_replay_event_trigger_status": "trigger_disabled",
"$session_entry_referrer": "https://posthog.example.com/testing",
"$insert_id": "xyz123abc456",
"$sdk_debug_replay_internal_buffer_size": 446278,
"$screen_width": 1366,
"$prev_pageview_max_content": 1499,
"$prev_pageview_duration": 10.296
}
}
]
}