Description Usage Arguments Details Value Author(s) Examples
View source: R/MP.getEventsProperty.R
Get unique, total, or average data for of a single event and property over days, weeks, or months. For more information go to https://mixpanel.com/help/reference/data-export-api#event-properties
1 |
api_secret |
Your API Mixpanel secret, you can find hin in mixpanel web interface: Account (http://img.netpeak.ua/alsey/150600941068_kiss_10kb.png) > Projects (http://img.netpeak.ua/alsey/150600948369_kiss_46kb.png) |
event |
The event or events that you wish to get data for, example c("play song", "log in", "add playlist") |
property |
The name of the property you would like to get data for. For example "mp_country_code" |
values |
The specific property values that you would like to get data for Example: If you have a property "gender" you may have values "male", "female" and "unknown". If you just want data for female and unknown users, you can include a values property that looks like "["female", "unknown"]" |
type |
The analysis type you would like to get data for - such as general, unique, or average events. Valid values: "general", "unique", or "average" |
unit |
This can be "minute", "hour", "day", "week", or "month". It determines the level of granularity of the data you get back. Note that you cannot get hourly uniques. |
interva |
The number of "units" to return data for - minutes, hours, days, weeks, or months. 1 will return data for the current unit (minute, hour, day, week or month). 2 will return the current and previous units, and so on. Specify either interval or from_date and to_date. |
from_date |
The first date to return data for, in yyyy-mm-dd format. This date is inclusive. Specify either interval or from_date and to_date. |
to_date |
The last date to return data for, in yyyy-mm-dd format. This date is inclusive. Specify either interval or from_date and to_date. |
tidy |
Logical, if TRUE apply tidy data format, if FALSE apply report data format. |
limit |
The maximum number of values to return. |
For details go https://mixpanel.com/help/reference/data-export-api#event-properties
Data frame with data from Mixpanel API.
Alexey Seleznev
1 2 3 4 5 6 7 8 | MP_super_test2 <- MP.getEventsProperty(api_secret = "abcdefg123456",
event = c("$custom_event:585946"),
property = "mp_country_code",
type = "general",
unit = "day",
from_date = "2017-07-01",
to_date = "2017-07-25")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.