ganalytics (version 0.10.4)

GetGaData,.query-method: GetGaData Execute a ganalytics query.

Description

GetGaData Execute a ganalytics query.

Usage

# S4 method for .query
GetGaData(query, creds = NULL, .progress = "time",
  use_oob = FALSE, addViewId = FALSE, addSegmentId = FALSE)

Arguments

query

the query to execute.

creds

the Google APIs Project OAuth 2.0 credentials to use.

.progress

progress bar to display. use .progress = "none" to turn off.

use_oob

httr argument

addViewId

logical value indicating whether to add a viewID column for when more than one view has been provided.

addSegmentId

logical value indicating whether to add the name of the segment for when more than one segment has been queried.

Value

a dataframe