Usage
search_analytics(siteURL, startDate = Sys.Date() - 93, endDate = Sys.Date()
- 3, dimensions = NULL, searchType = c("web", "video", "image"),
dimensionFilterExp = NULL, aggregationType = c("auto", "byPage",
"byProperty"), rowLimit = 1000, prettyNames = TRUE, walk_data = FALSE)Arguments
siteURL
The URL of the website you have auth access to.
startDate
Start date of requested range, in YYYY-MM-DD.
endDate
End date of the requested date range, in YYYY-MM-DD.
dimensions
Zero or more dimensions to group results by: "date", "country", "device", "page" or "query"
searchType
Search type filter, default 'web'.
dimensionFilterExp
A character vector of expressions to filter. e.g. c("device==TABLET", "country~~GBR")
aggregationType
How data is aggregated.
rowLimit
How many rows, maximum is 5000.
prettyNames
If TRUE, converts SO 3166-1 alpha-3 country code to full name and
creates new column called countryName.
walk_data
Make an API call per day, which can increase the amount of data returned.