Skip to content

: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.

feat(taxonomy): document missing system properties and events (#64536)

Robbie42deba418ccd
diff --git a/frontend/src/taxonomy/core-filter-definitions-by-group.json b/frontend/src/taxonomy/core-filter-definitions-by-group.json
index ccb7d459066e..b5332daf891f 100644
--- a/frontend/src/taxonomy/core-filter-definitions-by-group.json
+++ b/frontend/src/taxonomy/core-filter-definitions-by-group.json
@@ -115,6 +115,30 @@
],
"label": "AI agent name (LLM)"
},
+ "$ai_audio_cost_usd": {
+ "description": "The cost in USD of the audio tokens for this LLM request.",
+ "examples": [
+ 0.0012
+ ],
+ "label": "AI audio cost USD (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_audio_input_tokens": {
+ "description": "The number of audio tokens in the input sent to the LLM.",
+ "examples": [
+ 64
+ ],
+ "label": "AI audio input tokens (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_audio_output_tokens": {
+ "description": "The number of audio tokens generated by the LLM.",
+ "examples": [
+ 64
+ ],
+ "label": "AI audio output tokens (LLM)",
+ "type": "Numeric"
+ },
"$ai_base_url": {
"description": "The base URL of the request made to the LLM API.",
"examples": [
@@ -134,6 +158,14 @@
],
"label": "AI cache creation input tokens (LLM)"
},
+ "$ai_cache_read_audio_tokens": {
+ "description": "The number of audio tokens read from the prompt cache.",
+ "examples": [
+ 16
+ ],
+ "label": "AI cache read audio tokens (LLM)",
+ "type": "Numeric"
+ },
"$ai_cache_read_input_tokens": {
"description": "The number of tokens read from the cache for the input prompt.",
"examples": [
@@ -141,6 +173,14 @@
],
"label": "AI cache read input tokens (LLM)"
},
+ "$ai_cache_read_token_price": {
+ "description": "The price per token read from the prompt cache.",
+ "examples": [
+ 3e-07
+ ],
+ "label": "AI cache read token price (LLM)",
+ "type": "Numeric"
+ },
"$ai_cache_reporting_exclusive": {
"description": "Whether cache tokens are excluded from the input token count. When true, cache tokens are separate from input tokens (Anthropic-style). When false, input tokens already include cache tokens. Auto-detected from provider when not set explicitly.",
"examples": [
@@ -148,6 +188,14 @@
],
"label": "AI cache reporting exclusive (LLM)"
},
+ "$ai_cache_write_token_price": {
+ "description": "The price per token written to the prompt cache.",
+ "examples": [
+ 3.75e-06
+ ],
+ "label": "AI cache write token price (LLM)",
+ "type": "Numeric"
+ },
"$ai_cost_model_provider": {
"description": "The provider used to look up the cost for this model.",
"examples": [
@@ -345,6 +393,39 @@
],
"label": "AI HTTP status (LLM)"
},
+ "$ai_image_cost_usd": {
+ "description": "The cost in USD of the image tokens for this LLM request.",
+ "examples": [
+ 0.004
+ ],
+ "label": "AI image cost USD (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_image_input_tokens": {
+ "description": "The number of image tokens in the input sent to the LLM.",
+ "examples": [
+ 256
+ ],
+ "label": "AI image input tokens (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_image_output_tokens": {
+ "description": "The number of image tokens generated by the LLM.",
+ "examples": [
+ 256
+ ],
+ "label": "AI image output tokens (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_ingestion_source": {
+ "description": "How the LLM analytics event was ingested.",
+ "examples": [
+ "otel",
+ "sdk"
+ ],
+ "label": "AI ingestion source (LLM)",
+ "type": "String"
+ },
"$ai_input": {
"description": "The input JSON that was sent to the LLM API.",
"examples": [
@@ -363,6 +444,14 @@
"description": "Input state of the LLM agent.",
"label": "AI Input State (LLM)"
},
+ "$ai_input_token_price": {
+ "description": "The price per input token used to compute the input cost. Set this to override PostHog's cost calculation.",
+ "examples": [
+ 3e-06
+ ],
+ "label": "AI input token price (LLM)",
+ "type": "Numeric"
+ },
"$ai_input_tokens": {
"description": "The number of tokens in the input prompt that was sent to the LLM API.",
"examples": [
@@ -470,6 +559,14 @@
"description": "Output state of the LLM agent.",
"label": "AI Output State (LLM)"
},
+ "$ai_output_token_price": {
+ "description": "The price per output token used to compute the output cost. Set this to override PostHog's cost calculation.",
+ "examples": [
+ 1.5e-05
+ ],
+ "label": "AI output token price (LLM)",
+ "type": "Numeric"
+ },
"$ai_output_tokens": {
"description": "The number of tokens in the output from the LLM API.",
"examples": [
@@ -488,6 +585,27 @@
"description": "The project name associated with this AI event.",
"label": "AI project name (LLM)"
},
+ "$ai_prompt_name": {
+ "description": "The name of the managed prompt used for this LLM request.",
+ "examples": [
+ "support-classifier"
+ ],
+ "label": "AI prompt name (LLM)",
+ "type": "String"
+ },
+ "$ai_prompt_version": {
+ "description": "The version of the managed prompt used for this LLM request.",
+ "examples": [
+ "3"
+ ],
+ "label": "AI prompt version (LLM)",
+ "type": "String"
+ },
+ "$ai_prompt_version_id": {
+ "description": "The identifier of the managed prompt version used for this LLM request.",
+ "label": "AI prompt version ID (LLM)",
+ "type": "String"
+ },
"$ai_provider": {
"description": "The provider of the AI model used to generate the output from the LLM API.",
"examples": [
@@ -495,6 +613,11 @@
],
"label": "AI Provider (LLM)"
},
+ "$ai_reasoning": {
+ "description": "The reasoning output produced by a reasoning-capable model.",
+ "label": "AI reasoning (LLM)",
+ "type": "String"
+ },
"$ai_reasoning_tokens": {
"description": "The number of tokens in the reasoning output from the LLM API.",
"examples": [
@@ -509,6 +632,22 @@
],
"label": "AI request cost USD (LLM)"
},
+ "$ai_request_count": {
+ "description": "The number of requests made to the LLM provider for this generation.",
+ "examples": [
+ 1
+ ],
+ "label": "AI request count (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_request_price": {
+ "description": "The flat per-request price charged by the LLM provider, independent of token usage.",
+ "examples": [
+ 0.0001
+ ],
+ "label": "AI request price (LLM)",
+ "type": "Numeric"
+ },
"$ai_request_url": {
"description": "The full URL of the request made to the LLM API.",
"examples": [
@@ -696,6 +835,22 @@
],
"label": "AI temperature (LLM)"
},
+ "$ai_text_input_tokens": {
+ "description": "The number of text tokens in the input prompt sent to the LLM.",
+ "examples": [
+ 128
+ ],
+ "label": "AI text input tokens (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_text_output_tokens": {
+ "description": "The number of text tokens generated by the LLM.",
+ "examples": [
+ 42
+ ],
+ "label": "AI text output tokens (LLM)",
+ "type": "Numeric"
+ },
"$ai_time_to_first_token": {
"description": "The time in seconds from request start until the first token was received. Only applicable for streaming responses.",
"examples": [
@@ -775,6 +930,30 @@
"description": "The user prompt text sent to the LLM.",
"label": "AI user prompt (LLM)"
},
+ "$ai_video_cost_usd": {
+ "description": "The cost in USD of the video tokens for this LLM request.",
+ "examples": [
+ 0.01
+ ],
+ "label": "AI video cost USD (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_video_input_tokens": {
+ "description": "The number of video tokens in the input sent to the LLM.",
+ "examples": [
+ 512
+ ],
+ "label": "AI video input tokens (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_video_output_tokens": {
+ "description": "The number of video tokens generated by the LLM.",
+ "examples": [
+ 512
+ ],
+ "label": "AI video output tokens (LLM)",
+ "type": "Numeric"
+ },
"$ai_web_search_cost_usd": {
"description": "The cost in USD of web searches performed during the LLM API request.",
"examples": [
@@ -782,6 +961,22 @@
],
"label": "AI web search cost USD (LLM)"
},
+ "$ai_web_search_count": {
+ "description": "The number of web searches the LLM provider performed for this generation.",
+ "examples": [
+ 2
+ ],
+ "label": "AI web search count (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_web_search_price": {
+ "description": "The price per web search performed by the LLM provider.",
+ "examples": [
+ 0.01
+ ],
+ "label": "AI web search price (LLM)",
+ "type": "Numeric"
+ },
"$anon_distinct_id": {
"description": "If the user was previously anonymous, their anonymous ID will be set here.",
"examples": [
@@ -955,6 +1150,16 @@
"description": "The session ID from the conversations widget.",
"label": "Conversations widget session ID"
},
+ "$cookieless_extra": {
+ "description": "Additional input mixed into the cookieless identification hash.",
+ "label": "Cookieless extra hash input",
+ "type": "String"
+ },
+ "$cookieless_mode": {
+ "description": "Whether the event was captured in cookieless mode, where the person is identified without persistent identifiers.",
+ "label": "Cookieless mode",
+ "type": "Boolean"
+ },
"$copy_type": {
"description": "Type of copy event.",
"examples": [
@@ -1158,6 +1363,12 @@
"type": "Numeric",
"used_for_debug": true
},
+ "$debug_images": {
+ "description": "Debug image (symbol set) references used to symbolicate native stack traces.",
+ "ignored_in_assistant": true,
+ "label": "Debug images",
+ "type": "String"
+ },
"$device": {
"description": "The mobile device that was used.",
"examples": [
@@ -1321,6 +1532,11 @@
"description": "The fingerprint used to group issues. Auto generated unless provided clientside.",
"label": "Exception proposed fingerprint"
},
+ "$exception_releases": {
+ "description": "The releases in which this exception has been observed.",
+ "label": "Exception releases",
+ "type": "String"
+ },
"$exception_source": {
"description": "The source of the exception.",
"examples": [
@@ -1667,6 +1883,12 @@
],
"label": "Host"
},
+ "$ignore_sent_at": {
+ "description": "When set, ingestion ignores the event's `sent_at` and skips clock-skew correction of the timestamp.",
+ "ignored_in_assistant": true,
+ "label": "Ignore sent at",
+ "type": "Boolean"
+ },
"$initial_host": {
"description": "Hostname of the URL the user first visited.",
"examples": [
@@ -1751,6 +1973,16 @@
],
"label": "Is Mac Catalyst app"
},
+ "$issue_description": {
+ "description": "The description of the error tracking issue this exception belongs to.",
+ "label": "Issue description",
+ "type": "String"
+ },
+ "$issue_name": {
+ "description": "The name of the error tracking issue this exception belongs to.",
+ "label": "Issue name",
+ "type": "String"
+ },
"$last_posthog_reset": {
"description": "The timestamp of the last call to `Reset` in the web SDK. This can be useful for debugging.",
"ignored_in_assistant": true,
@@ -1758,6 +1990,17 @@
"system": true,
"used_for_debug": true
},
+ "$level": {
+ "description": "The severity level of the exception or log.",
+ "examples": [
+ "error",
+ "warning",
+ "info",
+ "fatal"
+ ],
+ "label": "Severity level",
+ "type": "String"
+ },
"$lib": {
"description": "What library was used to send the event.",
"examples": [
@@ -2084,6 +2327,29 @@
],
"label": "OS version"
},
+ "$otel_end_time_unix_nano": {
+ "description": "The OpenTelemetry span end time, in Unix nanoseconds.",
+ "ignored_in_assistant": true,
+ "label": "OpenTelemetry end time (ns)",
+ "type": "Numeric"
+ },
+ "$otel_span_name": {
+ "description": "The OpenTelemetry span name for an LLM analytics event ingested via OTel.",
+ "label": "OpenTelemetry span name",
+ "type": "String"
+ },
+ "$otel_start_time_unix_nano": {
+ "description": "The OpenTelemetry span start time, in Unix nanoseconds.",
+ "ignored_in_assistant": true,
+ "label": "OpenTelemetry start time (ns)",
+ "type": "Numeric"
+ },
+ "$override_feature_flag_payloads": {
+ "description": "Feature flag payloads attached to the event, overriding the evaluated payloads.",
+ "ignored_in_assistant": true,
+ "label": "Override feature flag payloads",
+ "type": "String"
+ },
"$override_feature_flags": {
"description": "Locally overridden feature flag values, typically set via the toolbar or SDK override APIs.",
"label": "Override feature flags",
@@ -2213,6 +2479,39 @@
"label": "Person profile processing flag",
"system": true
},
+ "$product_tour_dismiss_reason": {
+ "description": "Why the product tour was dismissed.",
+ "label": "Product tour dismiss reason",
+ "type": "String"
+ },
+ "$product_tour_id": {
+ "description": "The identifier of the product tour the event relates to.",
+ "label": "Product tour ID",
+ "type": "String"
+ },
+ "$product_tour_name": {
+ "description": "The name of the product tour the event relates to.",
+ "label": "Product tour name",
+ "type": "String"
+ },
+ "$product_tour_step_order": {
+ "description": "The zero-based order of the product tour step the event relates to.",
+ "examples": [
+ 0,
+ 1,
+ 2
+ ],
+ "label": "Product tour step order",
+ "type": "Numeric"
+ },
+ "$product_tour_steps_count": {
+ "description": "The total number of steps in the product tour.",
+ "examples": [
+ 5
+ ],
+ "label": "Product tour steps count",
+ "type": "Numeric"
+ },
"$product_tours_enabled_server_side": {
"description": "Whether product tours are enabled server-side.",
"label": "Product tours enabled server side",
@@ -2292,6 +2591,14 @@
"system": true,
"used_for_debug": true
},
+ "$revenue": {
+ "description": "The revenue associated with an event, in your account's base currency.",
+ "examples": [
+ 9.99
+ ],
+ "label": "Revenue",
+ "type": "Numeric"
+ },
"$screen_density": {
"description": "The logical density of the display. This is a scaling factor for the Density Independent Pixel unit, where one DIP is one pixel on an approximately 160 dpi screen (for example a 240x320, 1.5\"x2\" screen), providing the baseline of the system's display. Thus on a 160dpi screen this density value will be 1; on a 120 dpi screen it would be .75; etc.",
"examples": [
@@ -2338,7 +2645,7 @@
"$sdk_debug_extensions_init_time_ms": {
"description": "The time taken to initialize PostHog.js extensions in milliseconds.",
"examples": [
- "150"
+ 150
],
"label": "PostHog.js extensions init time (ms)",
"type": "Numeric",
@@ -2773,6 +3080,39 @@
"ignored_in_assistant": true,
"label": "Set person properties once"
},
+ "$snapshot_bytes": {
+ "description": "The size in bytes of the session recording snapshot payload.",
+ "ignored_in_assistant": true,
+ "label": "Snapshot bytes",
+ "type": "Numeric"
+ },
+ "$snapshot_data": {
+ "description": "The raw session recording snapshot payload.",
+ "ignored_in_assistant": true,
+ "label": "Snapshot data",
+ "type": "String"
+ },
+ "$snapshot_items": {
+ "description": "The number of items in the session recording snapshot payload.",
+ "ignored_in_assistant": true,
+ "label": "Snapshot items",
+ "type": "Numeric"
+ },
+ "$snapshot_source": {
+ "description": "The platform a session recording snapshot was captured on.",
+ "examples": [
+ "web",
+ "mobile"
+ ],
+ "label": "Snapshot source",
+ "type": "String"
+ },
+ "$stack_trace": {
+ "description": "The stack trace captured for the event.",
+ "ignored_in_assistant": true,
+ "label": "Stack trace",
+ "type": "String"
+ },
"$survey_completed": {
"description": "If a survey was fully completed (all questions answered), this will be true.",
"label": "Survey completed"
@@ -2814,6 +3154,11 @@
],
"label": "Survey response"
},
+ "$survey_response_1": {
+ "description": "A survey response value. Multi-question surveys store answers after the first as `$survey_response_<index>`.",
+ "label": "Survey response 1",
+ "type": "String"
+ },
"$survey_submission_id": {
"description": "The unique identifier for the survey submission. Relevant for partial submissions, as they submit multiple 'survey sent' events. This is what allows us to count them as a single submission.",
"label": "Survey submission ID"
@@ -2855,6 +3200,12 @@
"description": "The location of a Touch event on the Y axis",
"label": "Touch Y"
},
+ "$transformations_failed": {
+ "description": "The transformations that failed to run on this event during ingestion.",
+ "ignored_in_assistant": true,
+ "label": "Transformations failed",
+ "type": "String"
+ },
"$transformations_skipped": {
"description": "Array of transformations skipped during ingestion.",
"label": "Transformations skipped",
@@ -2952,6 +3303,12 @@
"type": "String",
"virtual": true
},
+ "$warehouse_source_row": {
+ "description": "The originating data warehouse row for an event sourced from a warehouse table.",
+ "ignored_in_assistant": true,
+ "label": "Warehouse source row",
+ "type": "String"
+ },
"$web_vitals_CLS_event": {
"label": "Web vitals CLS measure event details"
},
@@ -3316,6 +3673,30 @@
"ignored_in_assistant": true,
"label": "Capture metrics"
},
+ "$conversation_message_received": {
+ "description": "Fires when a message is received in a support conversation.",
+ "label": "Conversation message received"
+ },
+ "$conversation_message_sent": {
+ "description": "Fires when a message is sent in a support conversation.",
+ "label": "Conversation message sent"
+ },
+ "$conversation_ticket_assigned": {
+ "description": "Fires when a support conversation ticket is assigned to an actor.",
+ "label": "Conversation ticket assigned"
+ },
+ "$conversation_ticket_created": {
+ "description": "Fires when a new support conversation ticket is created.",
+ "label": "Conversation ticket created"
+ },
+ "$conversation_ticket_priority_changed": {
+ "description": "Fires when the priority of a support conversation ticket changes.",
+ "label": "Conversation ticket priority changed"
+ },
+ "$conversation_ticket_status_changed": {
+ "description": "Fires when the status of a support conversation ticket changes.",
+ "label": "Conversation ticket status changed"
+ },
"$copy_autocapture": {
"description": "Selected text automatically captured when a user copies or cuts.",
"ignored_in_assistant": true,
@@ -3343,6 +3724,18 @@
"ignored_in_assistant": true,
"label": "Element viewed"
},
+ "$error_tracking_issue_created": {
+ "description": "Fires when a new error tracking issue is created from an incoming exception.",
+ "label": "Error tracking issue created"
+ },
+ "$error_tracking_issue_reopened": {
+ "description": "Fires when a previously resolved error tracking issue is seen again and reopened.",
+ "label": "Error tracking issue reopened"
+ },
+ "$error_tracking_issue_spiking": {
+ "description": "Fires when an error tracking issue's volume spikes above its expected rate.",
+ "label": "Error tracking issue spiking"
+ },
"$exception": {
"description": "An unexpected error or unhandled exception in your application.",
"label": "Exception"
@@ -3452,6 +3845,11 @@
"ignored_in_assistant": true,
"label": "Set person properties"
},
+ "$snapshot": {
+ "description": "Carries session replay data to the backend. These events do not contribute to event counts.",
+ "ignored_in_assistant": true,
+ "label": "Session recording snapshot"
+ },
"$web_vitals": {
"description": "Automatically captured web vitals data.",
"label": "Web vitals"
@@ -3656,6 +4054,30 @@
],
"label": "AI agent name (LLM)"
},
+ "$ai_audio_cost_usd": {
+ "description": "The cost in USD of the audio tokens for this LLM request.",
+ "examples": [
+ 0.0012
+ ],
+ "label": "AI audio cost USD (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_audio_input_tokens": {
+ "description": "The number of audio tokens in the input sent to the LLM.",
+ "examples": [
+ 64
+ ],
+ "label": "AI audio input tokens (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_audio_output_tokens": {
+ "description": "The number of audio tokens generated by the LLM.",
+ "examples": [
+ 64
+ ],
+ "label": "AI audio output tokens (LLM)",
+ "type": "Numeric"
+ },
"$ai_base_url": {
"description": "The base URL of the request made to the LLM API.",
"examples": [
@@ -3675,6 +4097,14 @@
],
"label": "AI cache creation input tokens (LLM)"
},
+ "$ai_cache_read_audio_tokens": {
+ "description": "The number of audio tokens read from the prompt cache.",
+ "examples": [
+ 16
+ ],
+ "label": "AI cache read audio tokens (LLM)",
+ "type": "Numeric"
+ },
"$ai_cache_read_input_tokens": {
"description": "The number of tokens read from the cache for the input prompt.",
"examples": [
@@ -3682,6 +4112,14 @@
],
"label": "AI cache read input tokens (LLM)"
},
+ "$ai_cache_read_token_price": {
+ "description": "The price per token read from the prompt cache.",
+ "examples": [
+ 3e-07
+ ],
+ "label": "AI cache read token price (LLM)",
+ "type": "Numeric"
+ },
"$ai_cache_reporting_exclusive": {
"description": "Whether cache tokens are excluded from the input token count. When true, cache tokens are separate from input tokens (Anthropic-style). When false, input tokens already include cache tokens. Auto-detected from provider when not set explicitly.",
"examples": [
@@ -3689,6 +4127,14 @@
],
"label": "AI cache reporting exclusive (LLM)"
},
+ "$ai_cache_write_token_price": {
+ "description": "The price per token written to the prompt cache.",
+ "examples": [
+ 3.75e-06
+ ],
+ "label": "AI cache write token price (LLM)",
+ "type": "Numeric"
+ },
"$ai_cost_model_provider": {
"description": "The provider used to look up the cost for this model.",
"examples": [
@@ -3886,6 +4332,39 @@
],
"label": "AI HTTP status (LLM)"
},
+ "$ai_image_cost_usd": {
+ "description": "The cost in USD of the image tokens for this LLM request.",
+ "examples": [
+ 0.004
+ ],
+ "label": "AI image cost USD (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_image_input_tokens": {
+ "description": "The number of image tokens in the input sent to the LLM.",
+ "examples": [
+ 256
+ ],
+ "label": "AI image input tokens (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_image_output_tokens": {
+ "description": "The number of image tokens generated by the LLM.",
+ "examples": [
+ 256
+ ],
+ "label": "AI image output tokens (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_ingestion_source": {
+ "description": "How the LLM analytics event was ingested.",
+ "examples": [
+ "otel",
+ "sdk"
+ ],
+ "label": "AI ingestion source (LLM)",
+ "type": "String"
+ },
"$ai_input": {
"description": "The input JSON that was sent to the LLM API.",
"examples": [
@@ -3904,6 +4383,14 @@
"description": "Input state of the LLM agent.",
"label": "AI Input State (LLM)"
},
+ "$ai_input_token_price": {
+ "description": "The price per input token used to compute the input cost. Set this to override PostHog's cost calculation.",
+ "examples": [
+ 3e-06
+ ],
+ "label": "AI input token price (LLM)",
+ "type": "Numeric"
+ },
"$ai_input_tokens": {
"description": "The number of tokens in the input prompt that was sent to the LLM API.",
"examples": [
@@ -4011,6 +4498,14 @@
"description": "Output state of the LLM agent.",
"label": "AI Output State (LLM)"
},
+ "$ai_output_token_price": {
+ "description": "The price per output token used to compute the output cost. Set this to override PostHog's cost calculation.",
+ "examples": [
+ 1.5e-05
+ ],
+ "label": "AI output token price (LLM)",
+ "type": "Numeric"
+ },
"$ai_output_tokens": {
"description": "The number of tokens in the output from the LLM API.",
"examples": [
@@ -4029,6 +4524,27 @@
"description": "The project name associated with this AI event.",
"label": "AI project name (LLM)"
},
+ "$ai_prompt_name": {
+ "description": "The name of the managed prompt used for this LLM request.",
+ "examples": [
+ "support-classifier"
+ ],
+ "label": "AI prompt name (LLM)",
+ "type": "String"
+ },
+ "$ai_prompt_version": {
+ "description": "The version of the managed prompt used for this LLM request.",
+ "examples": [
+ "3"
+ ],
+ "label": "AI prompt version (LLM)",
+ "type": "String"
+ },
+ "$ai_prompt_version_id": {
+ "description": "The identifier of the managed prompt version used for this LLM request.",
+ "label": "AI prompt version ID (LLM)",
+ "type": "String"
+ },
"$ai_provider": {
"description": "The provider of the AI model used to generate the output from the LLM API.",
"examples": [
@@ -4036,6 +4552,11 @@
],
"label": "AI Provider (LLM)"
},
+ "$ai_reasoning": {
+ "description": "The reasoning output produced by a reasoning-capable model.",
+ "label": "AI reasoning (LLM)",
+ "type": "String"
+ },
"$ai_reasoning_tokens": {
"description": "The number of tokens in the reasoning output from the LLM API.",
"examples": [
@@ -4050,6 +4571,22 @@
],
"label": "AI request cost USD (LLM)"
},
+ "$ai_request_count": {
+ "description": "The number of requests made to the LLM provider for this generation.",
+ "examples": [
+ 1
+ ],
+ "label": "AI request count (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_request_price": {
+ "description": "The flat per-request price charged by the LLM provider, independent of token usage.",
+ "examples": [
+ 0.0001
+ ],
+ "label": "AI request price (LLM)",
+ "type": "Numeric"
+ },
"$ai_request_url": {
"description": "The full URL of the request made to the LLM API.",
"examples": [
@@ -4237,6 +4774,22 @@
],
"label": "AI temperature (LLM)"
},
+ "$ai_text_input_tokens": {
+ "description": "The number of text tokens in the input prompt sent to the LLM.",
+ "examples": [
+ 128
+ ],
+ "label": "AI text input tokens (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_text_output_tokens": {
+ "description": "The number of text tokens generated by the LLM.",
+ "examples": [
+ 42
+ ],
+ "label": "AI text output tokens (LLM)",
+ "type": "Numeric"
+ },
"$ai_time_to_first_token": {
"description": "The time in seconds from request start until the first token was received. Only applicable for streaming responses.",
"examples": [
@@ -4316,6 +4869,30 @@
"description": "The user prompt text sent to the LLM.",
"label": "AI user prompt (LLM)"
},
+ "$ai_video_cost_usd": {
+ "description": "The cost in USD of the video tokens for this LLM request.",
+ "examples": [
+ 0.01
+ ],
+ "label": "AI video cost USD (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_video_input_tokens": {
+ "description": "The number of video tokens in the input sent to the LLM.",
+ "examples": [
+ 512
+ ],
+ "label": "AI video input tokens (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_video_output_tokens": {
+ "description": "The number of video tokens generated by the LLM.",
+ "examples": [
+ 512
+ ],
+ "label": "AI video output tokens (LLM)",
+ "type": "Numeric"
+ },
"$ai_web_search_cost_usd": {
"description": "The cost in USD of web searches performed during the LLM API request.",
"examples": [
@@ -4323,6 +4900,22 @@
],
"label": "AI web search cost USD (LLM)"
},
+ "$ai_web_search_count": {
+ "description": "The number of web searches the LLM provider performed for this generation.",
+ "examples": [
+ 2
+ ],
+ "label": "AI web search count (LLM)",
+ "type": "Numeric"
+ },
+ "$ai_web_search_price": {
+ "description": "The price per web search performed by the LLM provider.",
+ "examples": [
+ 0.01
+ ],
+ "label": "AI web search price (LLM)",
+ "type": "Numeric"
+ },
"$anon_distinct_id": {
"description": "If the user was previously anonymous, their anonymous ID will be set here.",
"examples": [
@@ -4496,6 +5089,16 @@
"description": "The session ID from the conversations widget.",
"label": "Conversations widget session ID"
},
+ "$cookieless_extra": {
+ "description": "Additional input mixed into the cookieless identification hash.",
+ "label": "Cookieless extra hash input",
+ "type": "String"
+ },
+ "$cookieless_mode": {
+ "description": "Whether the event was captured in cookieless mode, where the person is identified without persistent identifiers.",
+ "label": "Cookieless mode",
+ "type": "Boolean"
+ },
"$copy_type": {
"description": "Type of copy event.",
"examples": [
@@ -4699,6 +5302,12 @@
"type": "Numeric",
"used_for_debug": true
},
+ "$debug_images": {
+ "description": "Debug image (symbol set) references used to symbolicate native stack traces.",
+ "ignored_in_assistant": true,
+ "label": "Debug images",
+ "type": "String"
+ },
"$device": {
"description": "The mobile device that was used.",
"examples": [
@@ -4862,6 +5471,11 @@
"description": "The fingerprint used to group issues. Auto generated unless provided clientside.",
"label": "Exception proposed fingerprint"
},
+ "$exception_releases": {
+ "description": "The releases in which this exception has been observed.",
+ "label": "Exception releases",
+ "type": "String"
+ },
"$exception_source": {
"description": "The source of the exception.",
"examples": [
@@ -5208,6 +5822,12 @@
],
"label": "Host"
},
+ "$ignore_sent_at": {
+ "description": "When set, ingestion ignores the event's `sent_at` and skips clock-skew correction of the timestamp.",
+ "ignored_in_assistant": true,
+ "label": "Ignore sent at",
+ "type": "Boolean"
+ },
"$initial__kx": {
"description": "Klaviyo Tracking ID Data from the first time this user was seen.",
"label": "Initial _kx"
@@ -5696,6 +6316,16 @@
],
"label": "Is Mac Catalyst app"
},
+ "$issue_description": {
+ "description": "The description of the error tracking issue this exception belongs to.",
+ "label": "Issue description",
+ "type": "String"
+ },
+ "$issue_name": {
+ "description": "The name of the error tracking issue this exception belongs to.",
+ "label": "Issue name",
+ "type": "String"
+ },
"$last_posthog_reset": {
"description": "The timestamp of the last call to `Reset` in the web SDK. This can be useful for debugging.",
"ignored_in_assistant": true,
@@ -5703,6 +6333,22 @@
"system": true,
"used_for_debug": true
},
+ "$last_seen_survey_date": {
+ "description": "The date the user last saw a survey.",
+ "label": "Last seen survey date",
+ "type": "DateTime"
+ },
+ "$level": {
+ "description": "The severity level of the exception or log.",
+ "examples": [
+ "error",
+ "warning",
+ "info",
+ "fatal"
+ ],
+ "label": "Severity level",
+ "type": "String"
+ },
"$lib": {
"description": "What library was used to send the event.",
"examples": [
@@ -6029,6 +6675,29 @@
],
"label": "Latest OS version"
},
+ "$otel_end_time_unix_nano": {
+ "description": "The OpenTelemetry span end time, in Unix nanoseconds.",
+ "ignored_in_assistant": true,
+ "label": "OpenTelemetry end time (ns)",
+ "type": "Numeric"
+ },
+ "$otel_span_name": {
+ "description": "The OpenTelemetry span name for an LLM analytics event ingested via OTel.",
+ "label": "OpenTelemetry span name",
+ "type": "String"
+ },
+ "$otel_start_time_unix_nano": {
+ "description": "The OpenTelemetry span start time, in Unix nanoseconds.",
+ "ignored_in_assistant": true,
+ "label": "OpenTelemetry start time (ns)",
+ "type": "Numeric"
+ },
+ "$override_feature_flag_payloads": {
+ "description": "Feature flag payloads attached to the event, overriding the evaluated payloads.",
+ "ignored_in_assistant": true,
+ "label": "Override feature flag payloads",
+ "type": "String"
+ },
"$override_feature_flags": {
"description": "Locally overridden feature flag values, typically set via the toolbar or SDK override APIs.",
"label": "Override feature flags",
@@ -6158,6 +6827,49 @@
"label": "Person profile processing flag",
"system": true
},
+ "$product_tour_dismiss_reason": {
+ "description": "Why the product tour was dismissed.",
+ "label": "Product tour dismiss reason",
+ "type": "String"
+ },
+ "$product_tour_id": {
+ "description": "The identifier of the product tour the event relates to.",
+ "label": "Product tour ID",
+ "type": "String"
+ },
+ "$product_tour_last_seen_date": {
+ "description": "The date the user last saw a product tour.",
+ "label": "Product tour last seen date",
+ "type": "DateTime"
+ },
+ "$product_tour_name": {
+ "description": "The name of the product tour the event relates to.",
+ "label": "Product tour name",
+ "type": "String"
+ },
+ "$product_tour_step_order": {
+ "description": "The zero-based order of the product tour step the event relates to.",
+ "examples": [
+ 0,
+ 1,
+ 2
+ ],
+ "label": "Product tour step order",
+ "type": "Numeric"
+ },
+ "$product_tour_steps_count": {
+ "description": "The total number of steps in the product tour.",
+ "examples": [
+ 5
+ ],
+ "label": "Product tour steps count",
+ "type": "Numeric"
+ },
+ "$product_tours_activated": {
+ "description": "The product tours that have been activated for this user.",
+ "label": "Product tours activated",
+ "type": "String"
+ },
"$product_tours_enabled_server_side": {
"description": "Whether product tours are enabled server-side.",
"label": "Product tours enabled server side",
@@ -6237,6 +6949,14 @@
"system": true,
"used_for_debug": true
},
+ "$revenue": {
+ "description": "The revenue associated with an event, in your account's base currency.",
+ "examples": [
+ 9.99
+ ],
+ "label": "Revenue",
+ "type": "Numeric"
+ },
"$screen_density": {
"description": "The logical density of the display. This is a scaling factor for the Density Independent Pixel unit, where one DIP is one pixel on an approximately 160 dpi screen (for example a 240x320, 1.5\"x2\" screen), providing the baseline of the system's display. Thus on a 160dpi screen this density value will be 1; on a 120 dpi screen it would be .75; etc.",
"examples": [
@@ -6283,7 +7003,7 @@
"$sdk_debug_extensions_init_time_ms": {
"description": "The time taken to initialize PostHog.js extensions in milliseconds.",
"examples": [
- "150"
+ 150
],
"label": "PostHog.js extensions init time (ms)",
"type": "Numeric",
@@ -6709,6 +7429,39 @@
"ignored_in_assistant": true,
"label": "Set person properties once"
},
+ "$snapshot_bytes": {
+ "description": "The size in bytes of the session recording snapshot payload.",
+ "ignored_in_assistant": true,
+ "label": "Snapshot bytes",
+ "type": "Numeric"
+ },
+ "$snapshot_data": {
+ "description": "The raw session recording snapshot payload.",
+ "ignored_in_assistant": true,
+ "label": "Snapshot data",
+ "type": "String"
+ },
+ "$snapshot_items": {
+ "description": "The number of items in the session recording snapshot payload.",
+ "ignored_in_assistant": true,
+ "label": "Snapshot items",
+ "type": "Numeric"
+ },
+ "$snapshot_source": {
+ "description": "The platform a session recording snapshot was captured on.",
+ "examples": [
+ "web",
+ "mobile"
+ ],
+ "label": "Snapshot source",
+ "type": "String"
+ },
+ "$stack_trace": {
+ "description": "The stack trace captured for the event.",
+ "ignored_in_assistant": true,
+ "label": "Stack trace",
+ "type": "String"
+ },
"$survey_completed": {
"description": "If a survey was fully completed (all questions answered), this will be true.",
"label": "Survey completed"
@@ -6725,6 +7478,11 @@
"description": "The start date for the current iteration of the survey.",
"label": "Survey iteration start date"
},
+ "$survey_last_seen_date": {
+ "description": "The timestamp the user last saw a survey, set during ingestion.",
+ "label": "Survey last seen date",
+ "type": "DateTime"
+ },
"$survey_name": {
"description": "The name of the survey.",
"examples": [
@@ -6750,6 +7508,11 @@
],
"label": "Survey response"
},
+ "$survey_response_1": {
+ "description": "A survey response value. Multi-question surveys store answers after the first as `$survey_response_<index>`.",
+ "label": "Survey response 1",
+ "type": "String"
+ },
"$survey_submission_id": {
"description": "The unique identifier for the survey submission. Relevant for partial submissions, as they submit multiple 'survey sent' events. This is what allows us to count them as a single submission.",
"label": "Survey submission ID"
@@ -6791,6 +7554,12 @@
"description": "The location of a Touch event on the Y axis",
"label": "Touch Y"
},
+ "$transformations_failed": {
+ "description": "The transformations that failed to run on this event during ingestion.",
+ "ignored_in_assistant": true,
+ "label": "Transformations failed",
+ "type": "String"
+ },
"$transformations_skipped": {
"description": "Array of transformations skipped during ingestion.",
"label": "Transformations skipped",
@@ -6867,6 +7636,12 @@
"type": "Numeric",
"virtual": true
},
+ "$warehouse_source_row": {
+ "description": "The originating data warehouse row for an event sourced from a warehouse table.",
+ "ignored_in_assistant": true,
+ "label": "Warehouse source row",
+ "type": "String"
+ },
"$web_vitals_CLS_event": {
"label": "Web vitals CLS measure event details"
},
@@ -7347,7 +8122,7 @@
"$autocapture_count": {
"description": "The number of autocapture events in this session.",
"examples": [
- "123"
+ 123
],
"label": "Autocapture count",
"type": "Numeric"
@@ -7362,6 +8137,11 @@
"label": "Channel type",
"type": "String"
},
+ "$emails": {
+ "description": "Email addresses associated with the session.",
+ "label": "Emails",
+ "type": "String"
+ },
"$end_current_url": {
"description": "The last URL visited in this session.",
"examples": [
@@ -7561,11 +8341,26 @@
"label": "Exit pathname",
"type": "String"
},
+ "$has_autocapture": {
+ "description": "Whether the session contains any autocapture events.",
+ "label": "Has autocapture",
+ "type": "Boolean"
+ },
+ "$has_replay_events": {
+ "description": "Whether the session has any session replay data.",
+ "label": "Has replay events",
+ "type": "Boolean"
+ },
+ "$hosts": {
+ "description": "All hosts visited during the session.",
+ "label": "Hosts",
+ "type": "String"
+ },
"$is_bounce": {
"description": "Whether the session was a bounce.",
"examples": [
- "true",
- "false"
+ true,
+ false
],
"label": "Is bounce",
"type": "Boolean"
@@ -7577,10 +8372,18 @@
],
"label": "Last external click URL"
},
+ "$num_uniq_urls": {
+ "description": "The number of unique URLs visited during the session.",
+ "examples": [
+ 3
+ ],
+ "label": "Number of unique URLs",
+ "type": "Numeric"
+ },
"$pageview_count": {
"description": "The number of page view events in this session.",
"examples": [
- "123"
+ 123
],
"label": "Pageview count",
"type": "Numeric"
@@ -7588,7 +8391,7 @@
"$screen_count": {
"description": "The number of screen events in this session.",
"examples": [
- "123"
+ 123
],
"label": "Screen count",
"type": "Numeric"
@@ -7596,9 +8399,9 @@
"$session_duration": {
"description": "The duration of the session being tracked. Learn more about how PostHog tracks sessions in [our documentation](https://posthog.com/docs/user-guides/sessions).\n\nNote: If the duration is formatted as a single number (not `HH:MM:SS`), it's in seconds.",
"examples": [
- "30",
- "146",
- "2"
+ 30,
+ 146,
+ 2
],
"label": "Session duration",
"type": "Numeric"
@@ -7611,6 +8414,11 @@
"label": "Start timestamp",
"type": "DateTime"
},
+ "$urls": {
+ "description": "All URLs visited during the session.",
+ "label": "URLs",
+ "type": "String"
+ },
"$vitals_lcp": {
"description": "The time it took for the Largest Contentful Paint on the page. This captures the perceived load time of the page, and measure how long it took for the main content of the page to be visible to users.",
"examples": [
diff --git a/posthog/hogql_queries/ai/test/__snapshots__/test_suggested_questions_query_runner.ambr b/posthog/hogql_queries/ai/test/__snapshots__/test_suggested_questions_query_runner.ambr
index 6cfc22db22bf..c65814075e9c 100644
--- a/posthog/hogql_queries/ai/test/__snapshots__/test_suggested_questions_query_runner.ambr
+++ b/posthog/hogql_queries/ai/test/__snapshots__/test_suggested_questions_query_runner.ambr
@@ -4,7 +4,7 @@
SELECT events.event AS event,
count() AS count
FROM events
- WHERE and(equals(events.team_id, 99999), greaterOrEquals(events.timestamp, minus(now64(6, 'UTC'), toIntervalDay(30))), notIn(events.event, ['$pageleave', '$autocapture', '$$heatmap', '$copy_autocapture', '$set', '$opt_in', '$feature_flag_called', '$feature_view', '$feature_interaction', '$element_viewed', '$capture_metrics', '$create_alias', '$merge_dangerously', '$groupidentify']))
+ WHERE and(equals(events.team_id, 99999), greaterOrEquals(events.timestamp, minus(now64(6, 'UTC'), toIntervalDay(30))), notIn(events.event, ['$pageleave', '$autocapture', '$$heatmap', '$copy_autocapture', '$set', '$opt_in', '$feature_flag_called', '$feature_view', '$feature_interaction', '$element_viewed', '$capture_metrics', '$create_alias', '$merge_dangerously', '$groupidentify', '$snapshot']))
GROUP BY events.event
ORDER BY count DESC, events.event ASC
LIMIT 501
diff --git a/posthog/hogql_queries/ai/test/__snapshots__/test_team_taxonomy_query_runner.ambr b/posthog/hogql_queries/ai/test/__snapshots__/test_team_taxonomy_query_runner.ambr
index f25f21606f43..777030fdad33 100644
--- a/posthog/hogql_queries/ai/test/__snapshots__/test_team_taxonomy_query_runner.ambr
+++ b/posthog/hogql_queries/ai/test/__snapshots__/test_team_taxonomy_query_runner.ambr
@@ -4,7 +4,7 @@
SELECT events.event AS event,
count() AS count
FROM events
- WHERE and(equals(events.team_id, 99999), greaterOrEquals(events.timestamp, minus(now64(6, 'UTC'), toIntervalDay(30))), notIn(events.event, ['$pageleave', '$autocapture', '$$heatmap', '$copy_autocapture', '$set', '$opt_in', '$feature_flag_called', '$feature_view', '$feature_interaction', '$element_viewed', '$capture_metrics', '$create_alias', '$merge_dangerously', '$groupidentify']))
+ WHERE and(equals(events.team_id, 99999), greaterOrEquals(events.timestamp, minus(now64(6, 'UTC'), toIntervalDay(30))), notIn(events.event, ['$pageleave', '$autocapture', '$$heatmap', '$copy_autocapture', '$set', '$opt_in', '$feature_flag_called', '$feature_view', '$feature_interaction', '$element_viewed', '$capture_metrics', '$create_alias', '$merge_dangerously', '$groupidentify', '$snapshot']))
GROUP BY events.event
ORDER BY count DESC, events.event ASC
LIMIT 501
diff --git a/posthog/taxonomy/taxonomy.py b/posthog/taxonomy/taxonomy.py
index e47437abf31f..53985ae4d6dd 100644
--- a/posthog/taxonomy/taxonomy.py
+++ b/posthog/taxonomy/taxonomy.py
@@ -413,6 +413,47 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {
"label": "MCP feedback submitted",
"description": "Fires when a user submits feedback through the MCP server's feedback tool.",
},
+ "$snapshot": {
+ "label": "Session recording snapshot",
+ "description": "Carries session replay data to the backend. These events do not contribute to event counts.",
+ "ignored_in_assistant": True,
+ },
+ "$error_tracking_issue_created": {
+ "label": "Error tracking issue created",
+ "description": "Fires when a new error tracking issue is created from an incoming exception.",
+ },
+ "$error_tracking_issue_reopened": {
+ "label": "Error tracking issue reopened",
+ "description": "Fires when a previously resolved error tracking issue is seen again and reopened.",
+ },
+ "$error_tracking_issue_spiking": {
+ "label": "Error tracking issue spiking",
+ "description": "Fires when an error tracking issue's volume spikes above its expected rate.",
+ },
+ "$conversation_message_sent": {
+ "label": "Conversation message sent",
+ "description": "Fires when a message is sent in a support conversation.",
+ },
+ "$conversation_message_received": {
+ "label": "Conversation message received",
+ "description": "Fires when a message is received in a support conversation.",
+ },
+ "$conversation_ticket_created": {
+ "label": "Conversation ticket created",
+ "description": "Fires when a new support conversation ticket is created.",
+ },
+ "$conversation_ticket_assigned": {
+ "label": "Conversation ticket assigned",
+ "description": "Fires when a support conversation ticket is assigned to an actor.",
+ },
+ "$conversation_ticket_status_changed": {
+ "label": "Conversation ticket status changed",
+ "description": "Fires when the status of a support conversation ticket changes.",
+ },
+ "$conversation_ticket_priority_changed": {
+ "label": "Conversation ticket priority changed",
+ "description": "Fires when the priority of a support conversation ticket changes.",
+ },
},
"elements": {
"tag_name": {
@@ -628,7 +669,7 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {
"$sdk_debug_extensions_init_time_ms": {
"label": "PostHog.js extensions init time (ms)",
"description": "The time taken to initialize PostHog.js extensions in milliseconds.",
- "examples": ["150"],
+ "examples": [150],
"type": "Numeric",
"used_for_debug": True,
},
@@ -2890,6 +2931,309 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {
"type": "String",
"virtual": True,
},
+ # LLM analytics — per-modality token counts, per-unit pricing, and per-modality costs.
+ # Emitted on $ai_generation / $ai_embedding events and stored as typed columns on the ai_events table.
+ "$ai_text_input_tokens": {
+ "label": "AI text input tokens (LLM)",
+ "description": "The number of text tokens in the input prompt sent to the LLM.",
+ "examples": [128],
+ "type": "Numeric",
+ },
+ "$ai_text_output_tokens": {
+ "label": "AI text output tokens (LLM)",
+ "description": "The number of text tokens generated by the LLM.",
+ "examples": [42],
+ "type": "Numeric",
+ },
+ "$ai_image_input_tokens": {
+ "label": "AI image input tokens (LLM)",
+ "description": "The number of image tokens in the input sent to the LLM.",
+ "examples": [256],
+ "type": "Numeric",
+ },
+ "$ai_image_output_tokens": {
+ "label": "AI image output tokens (LLM)",
+ "description": "The number of image tokens generated by the LLM.",
+ "examples": [256],
+ "type": "Numeric",
+ },
+ "$ai_audio_input_tokens": {
+ "label": "AI audio input tokens (LLM)",
+ "description": "The number of audio tokens in the input sent to the LLM.",
+ "examples": [64],
+ "type": "Numeric",
+ },
+ "$ai_audio_output_tokens": {
+ "label": "AI audio output tokens (LLM)",
+ "description": "The number of audio tokens generated by the LLM.",
+ "examples": [64],
+ "type": "Numeric",
+ },
+ "$ai_video_input_tokens": {
+ "label": "AI video input tokens (LLM)",
+ "description": "The number of video tokens in the input sent to the LLM.",
+ "examples": [512],
+ "type": "Numeric",
+ },
+ "$ai_video_output_tokens": {
+ "label": "AI video output tokens (LLM)",
+ "description": "The number of video tokens generated by the LLM.",
+ "examples": [512],
+ "type": "Numeric",
+ },
+ "$ai_cache_read_audio_tokens": {
+ "label": "AI cache read audio tokens (LLM)",
+ "description": "The number of audio tokens read from the prompt cache.",
+ "examples": [16],
+ "type": "Numeric",
+ },
+ "$ai_audio_cost_usd": {
+ "label": "AI audio cost USD (LLM)",
+ "description": "The cost in USD of the audio tokens for this LLM request.",
+ "examples": [0.0012],
+ "type": "Numeric",
+ },
+ "$ai_image_cost_usd": {
+ "label": "AI image cost USD (LLM)",
+ "description": "The cost in USD of the image tokens for this LLM request.",
+ "examples": [0.004],
+ "type": "Numeric",
+ },
+ "$ai_video_cost_usd": {
+ "label": "AI video cost USD (LLM)",
+ "description": "The cost in USD of the video tokens for this LLM request.",
+ "examples": [0.01],
+ "type": "Numeric",
+ },
+ "$ai_input_token_price": {
+ "label": "AI input token price (LLM)",
+ "description": "The price per input token used to compute the input cost. Set this to override PostHog's cost calculation.",
+ "examples": [0.000003],
+ "type": "Numeric",
+ },
+ "$ai_output_token_price": {
+ "label": "AI output token price (LLM)",
+ "description": "The price per output token used to compute the output cost. Set this to override PostHog's cost calculation.",
+ "examples": [0.000015],
+ "type": "Numeric",
+ },
+ "$ai_cache_read_token_price": {
+ "label": "AI cache read token price (LLM)",
+ "description": "The price per token read from the prompt cache.",
+ "examples": [0.0000003],
+ "type": "Numeric",
+ },
+ "$ai_cache_write_token_price": {
+ "label": "AI cache write token price (LLM)",
+ "description": "The price per token written to the prompt cache.",
+ "examples": [0.00000375],
+ "type": "Numeric",
+ },
+ "$ai_request_price": {
+ "label": "AI request price (LLM)",
+ "description": "The flat per-request price charged by the LLM provider, independent of token usage.",
+ "examples": [0.0001],
+ "type": "Numeric",
+ },
+ "$ai_request_count": {
+ "label": "AI request count (LLM)",
+ "description": "The number of requests made to the LLM provider for this generation.",
+ "examples": [1],
+ "type": "Numeric",
+ },
+ "$ai_web_search_price": {
+ "label": "AI web search price (LLM)",
+ "description": "The price per web search performed by the LLM provider.",
+ "examples": [0.01],
+ "type": "Numeric",
+ },
+ "$ai_web_search_count": {
+ "label": "AI web search count (LLM)",
+ "description": "The number of web searches the LLM provider performed for this generation.",
+ "examples": [2],
+ "type": "Numeric",
+ },
+ "$ai_reasoning": {
+ "label": "AI reasoning (LLM)",
+ "description": "The reasoning output produced by a reasoning-capable model.",
+ "type": "String",
+ },
+ "$ai_prompt_name": {
+ "label": "AI prompt name (LLM)",
+ "description": "The name of the managed prompt used for this LLM request.",
+ "examples": ["support-classifier"],
+ "type": "String",
+ },
+ "$ai_prompt_version": {
+ "label": "AI prompt version (LLM)",
+ "description": "The version of the managed prompt used for this LLM request.",
+ "examples": ["3"],
+ "type": "String",
+ },
+ "$ai_prompt_version_id": {
+ "label": "AI prompt version ID (LLM)",
+ "description": "The identifier of the managed prompt version used for this LLM request.",
+ "type": "String",
+ },
+ "$ai_ingestion_source": {
+ "label": "AI ingestion source (LLM)",
+ "description": "How the LLM analytics event was ingested.",
+ "examples": ["otel", "sdk"],
+ "type": "String",
+ },
+ # Cookieless tracking
+ "$cookieless_mode": {
+ "label": "Cookieless mode",
+ "description": "Whether the event was captured in cookieless mode, where the person is identified without persistent identifiers.",
+ "type": "Boolean",
+ },
+ "$cookieless_extra": {
+ "label": "Cookieless extra hash input",
+ "description": "Additional input mixed into the cookieless identification hash.",
+ "type": "String",
+ },
+ # Product tours
+ "$product_tour_id": {
+ "label": "Product tour ID",
+ "description": "The identifier of the product tour the event relates to.",
+ "type": "String",
+ },
+ "$product_tour_name": {
+ "label": "Product tour name",
+ "description": "The name of the product tour the event relates to.",
+ "type": "String",
+ },
+ "$product_tour_step_order": {
+ "label": "Product tour step order",
+ "description": "The zero-based order of the product tour step the event relates to.",
+ "examples": [0, 1, 2],
+ "type": "Numeric",
+ },
+ "$product_tour_steps_count": {
+ "label": "Product tour steps count",
+ "description": "The total number of steps in the product tour.",
+ "examples": [5],
+ "type": "Numeric",
+ },
+ "$product_tour_dismiss_reason": {
+ "label": "Product tour dismiss reason",
+ "description": "Why the product tour was dismissed.",
+ "type": "String",
+ },
+ # Surveys
+ "$survey_response_1": {
+ "label": "Survey response 1",
+ "description": "A survey response value. Multi-question surveys store answers after the first as `$survey_response_<index>`.",
+ "type": "String",
+ },
+ # Error tracking ($exception event properties)
+ "$issue_name": {
+ "label": "Issue name",
+ "description": "The name of the error tracking issue this exception belongs to.",
+ "type": "String",
+ },
+ "$issue_description": {
+ "label": "Issue description",
+ "description": "The description of the error tracking issue this exception belongs to.",
+ "type": "String",
+ },
+ "$exception_releases": {
+ "label": "Exception releases",
+ "description": "The releases in which this exception has been observed.",
+ "type": "String",
+ },
+ "$debug_images": {
+ "label": "Debug images",
+ "description": "Debug image (symbol set) references used to symbolicate native stack traces.",
+ "type": "String",
+ "ignored_in_assistant": True,
+ },
+ "$level": {
+ "label": "Severity level",
+ "description": "The severity level of the exception or log.",
+ "examples": ["error", "warning", "info", "fatal"],
+ "type": "String",
+ },
+ "$stack_trace": {
+ "label": "Stack trace",
+ "description": "The stack trace captured for the event.",
+ "type": "String",
+ "ignored_in_assistant": True,
+ },
+ # OpenTelemetry (LLM analytics ingested via OTel)
+ "$otel_span_name": {
+ "label": "OpenTelemetry span name",
+ "description": "The OpenTelemetry span name for an LLM analytics event ingested via OTel.",
+ "type": "String",
+ },
+ "$otel_start_time_unix_nano": {
+ "label": "OpenTelemetry start time (ns)",
+ "description": "The OpenTelemetry span start time, in Unix nanoseconds.",
+ "type": "Numeric",
+ "ignored_in_assistant": True,
+ },
+ "$otel_end_time_unix_nano": {
+ "label": "OpenTelemetry end time (ns)",
+ "description": "The OpenTelemetry span end time, in Unix nanoseconds.",
+ "type": "Numeric",
+ "ignored_in_assistant": True,
+ },
+ # Session replay snapshots
+ "$snapshot_source": {
+ "label": "Snapshot source",
+ "description": "The platform a session recording snapshot was captured on.",
+ "examples": ["web", "mobile"],
+ "type": "String",
+ },
+ "$snapshot_bytes": {
+ "label": "Snapshot bytes",
+ "description": "The size in bytes of the session recording snapshot payload.",
+ "type": "Numeric",
+ "ignored_in_assistant": True,
+ },
+ "$snapshot_items": {
+ "label": "Snapshot items",
+ "description": "The number of items in the session recording snapshot payload.",
+ "type": "Numeric",
+ "ignored_in_assistant": True,
+ },
+ "$snapshot_data": {
+ "label": "Snapshot data",
+ "description": "The raw session recording snapshot payload.",
+ "type": "String",
+ "ignored_in_assistant": True,
+ },
+ # Misc ingestion / CDP
+ "$revenue": {
+ "label": "Revenue",
+ "description": "The revenue associated with an event, in your account's base currency.",
+ "examples": [9.99],
+ "type": "Numeric",
+ },
+ "$transformations_failed": {
+ "label": "Transformations failed",
+ "description": "The transformations that failed to run on this event during ingestion.",
+ "type": "String",
+ "ignored_in_assistant": True,
+ },
+ "$override_feature_flag_payloads": {
+ "label": "Override feature flag payloads",
+ "description": "Feature flag payloads attached to the event, overriding the evaluated payloads.",
+ "type": "String",
+ "ignored_in_assistant": True,
+ },
+ "$warehouse_source_row": {
+ "label": "Warehouse source row",
+ "description": "The originating data warehouse row for an event sourced from a warehouse table.",
+ "type": "String",
+ "ignored_in_assistant": True,
+ },
+ "$ignore_sent_at": {
+ "label": "Ignore sent at",
+ "description": "When set, ingestion ignores the event's `sent_at` and skips clock-skew correction of the timestamp.",
+ "type": "Boolean",
+ "ignored_in_assistant": True,
+ },
},
"numerical_event_properties": {},
"person_properties": {
@@ -2925,12 +3269,32 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {
"type": "Numeric",
"virtual": True,
},
+ "$last_seen_survey_date": {
+ "label": "Last seen survey date",
+ "description": "The date the user last saw a survey.",
+ "type": "DateTime",
+ },
+ "$survey_last_seen_date": {
+ "label": "Survey last seen date",
+ "description": "The timestamp the user last saw a survey, set during ingestion.",
+ "type": "DateTime",
+ },
+ "$product_tour_last_seen_date": {
+ "label": "Product tour last seen date",
+ "description": "The date the user last saw a product tour.",
+ "type": "DateTime",
+ },
+ "$product_tours_activated": {
+ "label": "Product tours activated",
+ "description": "The product tours that have been activated for this user.",
+ "type": "String",
+ },
},
"session_properties": {
"$session_duration": {
"label": "Session duration",
"description": "The duration of the session being tracked. Learn more about how PostHog tracks sessions in [our documentation](https://posthog.com/docs/user-guides/sessions).\n\nNote: If the duration is formatted as a single number (not `HH:MM:SS`), it's in seconds.",
- "examples": ["30", "146", "2"],
+ "examples": [30, 146, 2],
"type": "Numeric",
},
"$start_timestamp": {
@@ -2996,19 +3360,19 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {
"$pageview_count": {
"label": "Pageview count",
"description": "The number of page view events in this session.",
- "examples": ["123"],
+ "examples": [123],
"type": "Numeric",
},
"$autocapture_count": {
"label": "Autocapture count",
"description": "The number of autocapture events in this session.",
- "examples": ["123"],
+ "examples": [123],
"type": "Numeric",
},
"$screen_count": {
"label": "Screen count",
"description": "The number of screen events in this session.",
- "examples": ["123"],
+ "examples": [123],
"type": "Numeric",
},
"$channel_type": {
@@ -3020,7 +3384,7 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {
"$is_bounce": {
"label": "Is bounce",
"description": "Whether the session was a bounce.",
- "examples": ["true", "false"],
+ "examples": [True, False],
"type": "Boolean",
},
"$last_external_click_url": {
@@ -3033,6 +3397,37 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {
"description": "The time it took for the Largest Contentful Paint on the page. This captures the perceived load time of the page, and measure how long it took for the main content of the page to be visible to users.",
"examples": ["2.2"],
},
+ "$urls": {
+ "label": "URLs",
+ "description": "All URLs visited during the session.",
+ "type": "String",
+ },
+ "$num_uniq_urls": {
+ "label": "Number of unique URLs",
+ "description": "The number of unique URLs visited during the session.",
+ "examples": [3],
+ "type": "Numeric",
+ },
+ "$hosts": {
+ "label": "Hosts",
+ "description": "All hosts visited during the session.",
+ "type": "String",
+ },
+ "$emails": {
+ "label": "Emails",
+ "description": "Email addresses associated with the session.",
+ "type": "String",
+ },
+ "$has_autocapture": {
+ "label": "Has autocapture",
+ "description": "Whether the session contains any autocapture events.",
+ "type": "Boolean",
+ },
+ "$has_replay_events": {
+ "label": "Has replay events",
+ "description": "Whether the session has any session replay data.",
+ "type": "Boolean",
+ },
},
"groups": {
"$group_key": {