"Mixpanel" (Service Connection)

Connect to the Mixpanel analytics platform using the Wolfram Language to extract and analyze data on user interaction with web and mobile applications.

Connecting & Authenticating

ServiceConnect["Mixpanel"] creates a connection to the Mixpanel API.
This service requires a connection to the internet and a Mixpanel account.

Requests

ServiceExecute["Mixpanel","request",params] sends a request to the Mixpanel API, using parameters params. The following give possible requests.

Annotations

Request:

"ListAnnotations" get the annotations list made for the given date range

Parameters:
  • "DateWindow"Nonedate range; accepts Quantity objects or strings (e.g. "two weeks")
  • Request:

    "AddAnnotation" create a new annotation at a specific date

    Parameters:
  • "Date"(required)annotation date
    "Description"(required)the description of the annotation
  • Request:

    "UpdateAnnotation" update an annotation with a new date and description

    Parameters:
  • "AnnotationID"(required)the ID of the annotation to update
    "Date"(required)updated annotation date
    "Description"(required)the updated description of the annotation
  • Events

    Request:

    "Events" get unique, total, or average data for a set of events over a period of time

    Parameters:
  • "Event"(required)the event or events to get data for
    "Type"Generalanalysis type ("General", "Unique", "Average")
    "DateWindow"{DatePlus[Today,-30],"Days"}date range; accepts Quantity objects or strings (e.g. "two weeks")
  • Event Types

    Request:

    "EventTypes" get a list of the most common events over the last 31 days

    Parameters:
  • "Type"Generalanalysis type ("General", "Unique", "Average")
    MaxItems255maximum number of items to return
  • Top Events

    Request:

    "TopEvents" get the top events for today, with their counts and the normalized percent change from yesterday

    Parameters:
  • "Type"Generalanalysis type ("General", "Unique", "Average")
    MaxItems100maximum number of items to return
  • Event Properties

    Request:

    "Properties" get unique, total, or average data for a single event and property over a period of time

    Parameters:
  • "Event"(required)a single event to get data for
    "Property"(required)the name of the property to get data for
    "Type"Generalanalysis type ("General", "Unique", "Average")
    "DateWindow"{DatePlus[Today,-30],"Days"}date range; accepts Quantity objects or strings (e.g. "two weeks")
    MaxItems255maximum number of items to return
    "Values"Allproperty values to retrieve data for
  • Top Properties

    Request:

    "TopProperties" get the top property names for an event

    Parameters:
  • "Event"(required)event name to query
    MaxItems10maximum number of items to return
  • Property Values

    Request:

    "PropertyValues" get the top values for a property

    Parameters:
  • "Event"(required)event name to query
    "Property"(required)property name to query
    MaxItems10maximum number of items to return
    "Bucket"Nonespecific data bucket to query
  • Funnels List

    Request:

    "Funnels" get the names and IDs of funnels

    Funnel

    Request:

    "Funnel" get data for a funnel

    Parameters:
  • "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 allclose all

    Basic Examples  (1)

    Create a new connection by launching an authentication dialog:

    Scope  (1)