Track user events and behaviors
1 (recommended), Mixpanel validates the batch and returns errors per event that failed.Options: 0 or 1application/json: Standard JSON arrayapplication/x-ndjson: Newline-delimited JSONgzip1, uses the IP address of the request to determine geolocation1, returns a verbose JSON response instead of simple 1 or 01 for success, 0 for failure.
Always use $insert_id for deduplication
Use server-side tracking when possible
Batch events for better performance
Use meaningful event names
Include relevant context in properties
Invalid timestamp
'properties.time' is invalid: must be specified as seconds since epochSolution: Ensure timestamps are in seconds (not milliseconds) or milliseconds (with 13 digits)Missing required fields
event nameproperties.distinct_idproperties.timeproperties.$insert_id (for /import)Payload too large
request exceeds max limit of 2097152 bytesSolution: