Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)
WOLFRAM LANGUAGE SERVICE CONNECTION

Mixpanel

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

Connecting & AuthenticatingConnecting & Authenticating

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

RequestsRequests

    ServiceExecute[conn,"request",params] sends a request to the connection identified by conn, 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

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Create a new connection by launching an authentication dialog:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=
In[6]:=
Click for copyable input
Out[6]=
In[7]:=
Click for copyable input
Out[7]=
In[8]:=
Click for copyable input
Out[8]=
In[9]:=
Click for copyable input
Out[9]=
In[10]:=
Click for copyable input
Out[10]=