"Mixpanel" (Service Connection)
Connecting & Authenticating
Requests
Annotations
"ListAnnotations" — get the annotations list made for the given date range
| "DateWindow" | None | date range; accepts Quantity objects or strings (e.g. "two weeks") |
"AddAnnotation" — create a new annotation at a specific date
| "Date" | (required) | annotation date | |
| "Description" | (required) | the description of the annotation |
"UpdateAnnotation" — update an annotation with a new date and description
| "AnnotationID" | (required) | the ID of the annotation to update | |
| "Date" | (required) | updated annotation date | |
| "Description" | (required) | the updated description of the annotation |
Events
"Events" —get unique, total, or average data for a set of events over a period of time
| "Event" | (required) | the event or events to get data for | |
| "Type" | General | analysis type ("General", "Unique", "Average") | |
| "DateWindow" | {DatePlus[Today,-30],"Days"} | date range; accepts Quantity objects or strings (e.g. "two weeks") |
Event Types
"EventTypes" — get a list of the most common events over the last 31 days
| "Type" | General | analysis type ("General", "Unique", "Average") | |
| MaxItems | 255 | maximum number of items to return |
Top Events
"TopEvents" — get the top events for today, with their counts and the normalized percent change from yesterday
| "Type" | General | analysis type ("General", "Unique", "Average") | |
| MaxItems | 100 | maximum number of items to return |
Event Properties
"Properties" — get unique, total, or average data for a single event and property over a period of time
| "Event" | (required) | a single event to get data for | |
| "Property" | (required) | the name of the property to get data for | |
| "Type" | General | analysis type ("General", "Unique", "Average") | |
| "DateWindow" | {DatePlus[Today,-30],"Days"} | date range; accepts Quantity objects or strings (e.g. "two weeks") | |
| MaxItems | 255 | maximum number of items to return | |
| "Values" | All | property values to retrieve data for |
Top Properties
"TopProperties" — get the top property names for an event
| "Event" | (required) | event name to query | |
| MaxItems | 10 | maximum number of items to return |
Property Values
"PropertyValues" — get the top values for a property
| "Event" | (required) | event name to query | |
| "Property" | (required) | property name to query | |
| MaxItems | 10 | maximum number of items to return | |
| "Bucket" | None | specific data bucket to query |
Funnels List
"Funnels" — get the names and IDs of funnels
Funnel
"Funnel" — get data for a funnel
| "FunnelID" | (required) | funnel ID to query | |
| "DateWindow" | {DatePlus[Today,-30],Today,"Days"} | date range; accepts Quantity objects or strings (e.g. "two weeks") | |
| "CompletionDeadline" | (required) | the number of days each user has to complete the funnel, starting from the time they triggered the first step in the funnel; may not be greater than 60 days |
Examples
open all close allBasic Examples (1)
Scope (1)
ServiceExecute["Mixpanel", "AddAnnotation", {"Date" -> DateObject[{2016, 2, 10}], "Description" -> "AddAnnotation example note"}]ServiceExecute["Mixpanel", "UpdateAnnotation",
{"AnnotationID" -> 67053, "Date" -> DateObject[{2015, 6, 6}], "Description" -> "UpdateAnnotation example note"}]ServiceExecute["Mixpanel", "Events",
{"Event" -> {"Add Item to Cart", "$signup", "Session End"}, "DateWindow" -> {DateObject[{2015, 5, 16}], "weeks"}}]ServiceExecute["Mixpanel", "EventTypes",
{"Type" -> "Unique", MaxItems -> 5}]ServiceExecute["Mixpanel", "TopEvents",
{"Type" -> "Average", MaxItems -> 5}]ServiceExecute["Mixpanel", "Properties",
{"Event" -> "Session End", "Property" -> "Account Created Date", "Type" -> "General",
"DateWindow" -> {DateObject[{2015, 5, 16}], "weeks"}, MaxItems -> 3}]ServiceExecute["Mixpanel", "TopProperties",
{"Event" -> "Session End", MaxItems -> 8}]ServiceExecute["Mixpanel", "PropertyValues",
{"Event" -> "Session End", "Property" -> "Account Created Date", MaxItems -> 5}]ServiceExecute["Mixpanel", "Funnels", {}]ServiceExecute["Mixpanel", "Funnel",
{"FunnelID" -> 656195, "CompletionDeadline" -> 20, "DateWindow" -> {DateObject[{2015, 5, 13}], DateObject[{2015, 6, 10}], "weeks"}}]