Init {RGoogleAnalyticsPremium} | R Documentation |
Initialize the Google Analytics query parameters
Description
This function takes all the query parameters and combines them into a single
list that is to be passed as an argument to QueryBuilder
. Note
that parameter validation is performed when the QueryBuilder
object is created
Usage
Init(end.date = NULL, metrics = NULL, start.date = NULL, title = NULL,
dimensions = NULL, filters = NULL, segments = NULL)
Arguments
end.date |
End Date for fetching Analytics Data. End Date must be of the format "%Y-%m-%d" |
metrics |
A vector of up to 10 metrics, either as a single string or a vector or strings. E.g. "ga:sessions" or c("ga:sessions", "ga:bounces"). |
start.date |
Start Date for fetching Analytics Data. Start Date must be of the format "%Y-%m-%d" |
title |
Title of unsampled report. |
dimensions |
Optional. A vector of up to 4 dimensions, either as a single string or a vector or strings, E.g. "ga:source,ga:medium" or c("ga:source", "ga:medium"). |
filters |
Optional.The filter string for the GA request.e.g. "ga:medium==referral". |
segments |
Optional.An advanced segment definition to slice and dice your Analytics data. |
Value
List of all the Query Parameters initialized by the user