Learn R Programming

ganalytics (version 0.10.7)

GaQuery: GaQuery.

Description

Create a ganalytics query object

Usage

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