get_ga_properties {metricminer}R Documentation

Get all property ids for all Google Analytics associated with an account id

Description

This is a function to get the Google Analytics accounts that this user has access to

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

## Not run: 

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

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

## End(Not run)

[Package metricminer version 0.5.1 Index]