View source: R/Query-methods.R
Create a ganalytics query object
1 2 3 4 5 |
view |
view id to use |
creds |
authentication credentials object created using
|
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 |
maxResults |
the maximum number of results to return, up to 1,000,000 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.