Description Usage Arguments Value Author(s) References See Also Examples
View source: R/mixpanelGetRetention.R
Get retention data from Mixpanel API. The resulting object can be printed nicely using print.retention
.
1 2 | mixpanelGetRetention(account, event, from, to, unit, retentionType,
intervalCount, verbose=TRUE, ...)
|
account |
A mixpanel account, as defined in |
event |
Event name. If empty, all events are returned. |
from |
Start date in either format <"yyyy-mm-dd"> or <yyyymmdd>. Inclusive. |
to |
End date in either format <"yyyy-mm-dd"> or <yyyymmdd>. Inclusive. |
unit |
Defaults to 'day'. |
retentionType |
|
intervalCount |
Number of intervals per cohort to return. |
verbose |
If |
... |
Additional arguments to Mixpanel API. E.g. |
Object of class retention
including
dates |
Start dates of each cohort. |
cohortCount |
Size of cohorts (people count). |
retainCount |
Number of retained people. |
retainPerc |
Percentage of retained people. |
Meinhard Ploner
https://mixpanel.com/help/reference/data-export-api#retention
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
## Fill in here the API token, key and secret as found on
## www.mixpanel.com - Account -> Projects.
account = mixpanelCreateAccount("ProjectName",
token="c12g3...",
secret="168e7e...",
key="543c55...")
mixpanelGetRetention(account, born_event="AppInstall", event="WatchedItem",
from=20150701, to=20151101, unit="week")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.