Description Usage Arguments Value Examples
Refer to Datorama's Developer portal for futher information. In order to use this package your account will have to have access to the Datorama Query API, which is a paid feature.
1 2 3 4 5 6 | datorama_query(access_token = NULL, workspaceId = NULL, dateRange = NULL,
startDate = NULL, endDate = NULL, measurements = NULL,
dimensions = NULL, groupDimensionFilters = NULL,
stringDimensionFilters = NULL, stringDimensionFiltersOperator = NULL,
numberMeasurementFilter = NULL, sortBy = NULL, sortOrder = NULL,
topResults = NULL, groupOthers = NULL, topPerDimension = NULL)
|
access_token |
Authorization string that is found within the Datorama platform |
workspaceId |
A string containing the workspaceId |
dateRange |
A string containing date range for query |
startDate |
A string -> format YYYY-MM-DD |
endDate |
A string -> format YYYY-MM-DD |
measurements |
A list of lists including attributes to include -> list(list(name = "Investment")) |
dimensions |
A list of dimensions to be included -> list("Day", "Site Name") |
groupDimensionFilters |
A list of lists including dimension, operator -> "IN", "NOT IN", and vals for filtering |
stringDimensionFilters |
A list of lists including dimension, operator -> "EQUALS", "NOT_EQUALS", "NOT_EQUALS_CASE_SENSITIVE", "CONTAINS", "NOT_CONTAINS", "STARTS_WITH", "ENDS_WITH", "IS_EMPTY", "IS_NOT_EMPTY", and val for filtering |
stringDimensionFiltersOperator |
A string for string dimension filtering -> "AND", "OR" |
numberMeasurementFilter |
A list of lists including filedName (measurement name), operator -> "EQUALS", "NOT_EQUALS", "GREATER", "GREATER_EQUALS", "LESS", "LESS_EQUALS", "IS_NULL", "IS_NOT_NULL", "IS_NAN", "IS_NOT_NAN" and val for filtering |
sortBy |
A string including name of dimension/measurement to sort by |
sortOrder |
A string containing the order of the sort -> "ASC", "DESC" |
topResults |
A string containing the number of results to return |
groupOthers |
Boolean determining whether to group all results not in topResults |
topPerDimension |
Boolean determining whether to return topResults per dimension |
A tibble with the query's response
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
datorama_query(acces_token = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
workspaceId = "271",
dateRange = "CUSTOM",
startDate = "2017-11-01",
endDate = "2017-11-20",
measurements = list(list(name = "Clicks"),
list(name = "Impressions")),
dimensions = list("Day", "Site Name")
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.