View source: R/google-analytics.R
request_ga | R Documentation |
This is a function that handles requests from Google Analytics. The scope it uses is the ‘See and download your Google Analytics data' If you don’t this check this box on the OAuth screen this won't work.
request_ga(token, url, query = NULL, body_params = NULL, request_type)
token |
credentials for access to Google using OAuth. 'authorize("google")' |
url |
The endpoint URL for the request |
query |
A list to be passed to query |
body_params |
The body parameters for the request |
request_type |
Is this a GET or a POST? |
An API response in the form of a list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.