Skip to contents

This retrieves all the property ids associated with a Google Analytics Account. 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.

Usage

get_ga_properties(account_id, token = NULL)

Arguments

account_id

the account id of the properties you are trying to retrieve

token

credentials for access to Google using OAuth. `authorize("google")`

Value

All the property ids and information about them for a Google Analytics account.

Examples

if (FALSE) { # \dontrun{

authorize("google")
accounts <- get_ga_user()

properties_list <- get_ga_properties(account_id = accounts$id[1])
} # }