ganalytics (version 0.10.4)

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, profileId = NA)

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,

profileId

Deprecated, use view instead. up to 1,000,000