GaQuery: GaQuery.

Description Usage Arguments

View source: R/Query-methods.R

Description

Create a ganalytics query object

Usage

1
2
3
4
5
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)

Arguments

view

view id to use

creds

authentication credentials object created using GoogleApiCreds()

startDate

start date

endDate

end date

metrics

character vector of metrics

dimensions

character vector of dimensions

sortBy

a sort by object

filters

a filters object

segments

a segment object or list of segments

cohorts

a cohort object or a list of cohorts

samplingLevel

either "DEFAULT", "HIGHER_PRECISION" or "FASTER"

maxResults

the maximum number of results to return, up to 1,000,000


ganalytics documentation built on May 2, 2019, 8:34 a.m.