query_segmentation_report
Analyze how different user segments behave by breaking down event data by specific properties. Compare event patterns across user groups to identify behavioral differences and trends over time.
Instructions
Segment events by properties. Useful for analyzing how different user segments behave and comparing event patterns across groups.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
event | Yes | The event to segment | |
from_date | Yes | The date in yyyy-mm-dd format to begin querying from (inclusive) | |
on | Yes | The property to segment by | |
project_id | No | The Mixpanel project ID. Optional since it has a default. | |
to_date | Yes | The date in yyyy-mm-dd format to query to (inclusive) | |
unit | No | The time unit for segmentation, defaults to day | |
where | No | JSON string representing additional filters |
Input Schema (JSON Schema)
{
"properties": {
"event": {
"description": "The event to segment",
"type": "string"
},
"from_date": {
"description": "The date in yyyy-mm-dd format to begin querying from (inclusive)",
"type": "string"
},
"on": {
"description": "The property to segment by",
"type": "string"
},
"project_id": {
"description": "The Mixpanel project ID. Optional since it has a default.",
"type": "string"
},
"to_date": {
"description": "The date in yyyy-mm-dd format to query to (inclusive)",
"type": "string"
},
"unit": {
"description": "The time unit for segmentation, defaults to day",
"enum": [
"hour",
"day",
"week",
"month"
],
"type": "string"
},
"where": {
"description": "JSON string representing additional filters",
"type": "string"
}
},
"required": [
"event",
"from_date",
"to_date",
"on"
],
"type": "object"
}