Create a ganalytics query object
GaQuery(view = NA, creds = get_creds(), startDate = Sys.Date() - 8,
endDate = Sys.Date() - 2, metrics = "ga:sessions",
dimensions = "ga:date", sortBy = NULL, filters = NULL,
segments = NULL, cohorts = NULL, samplingLevel = "DEFAULT",
maxResults = kGaMaxResults)
view id to use
authentication credentials object created using
GoogleApiCreds()
start date
end date
character vector of metrics
character vector of dimensions
a sort by object
a filters object
a segment object or list of segments
a cohort object or a list of cohorts
either "DEFAULT"
, "HIGHER_PRECISION"
or
"FASTER"
the maximum number of results to return, up to 1,000,000