MP.getRawData: Get a "raw dump" of tracked events over a time period.

Description Usage Arguments Details Value Author(s) Examples

View source: R/MP.getRawData.R

Description

Get a "raw dump" of tracked events over a time period. Duration work of MP.getRawData is very long, use him only if you need raw data, in other cases use others package's function. For more information go https://mixpanel.com/help/reference/exporting-raw-data

Usage

1
MP.getEvents(api_secret = NULL, event = NULL, type = "general", unit = "day", interva = NULL, from_date = Sys.Date() - 10, to_date = Sys.Date())

Arguments

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")

where

An expression to filter the returning events by. For example 'properties["utm_source"]=="AdWords" and "Brand" in properties["utm_campaign"]', For more information go https://mixpanel.com/help/reference/data-export-api#segmentation-expressions

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.

Details

For more information go https://mixpanel.com/help/reference/data-export-api#events

Value

Data frame with raw data from Mixpanel account.

Author(s)

Alexey Seleznev

Examples

1
2
3
4
5
6
MixPanel.RawData <- MP.getRawData(api_secret = "abcdefg123456",
                                  event = "emu",
                                  where = 'properties["utm_source"]=="AdWords" and "Brand" in properties["utm_campaign"]',
                                  from_date = "2017-07-10",
                                  to_date = "2017-07-10")
  

selesnow/rmixpanel documentation built on May 26, 2021, 10:04 a.m.