processManagementData: Take GA API output and parses it into data.frame

Description Usage Arguments Value See Also Examples

Description

Internal function for returning a dataframe from API response

Usage

1

Arguments

url

The GA API response URL.

keep

Which colums to keep.

Value

A dataframe of GA data.

See Also

Other fetch data functions: MEgetData; getAndMergeGAAccounts; rollupGA; shinygaGetAccounts; shinygaGetAdWords; shinygaGetCustomDataSources; shinygaGetCustomDimensions; shinygaGetCustomMetrics; shinygaGetFilters; shinygaGetGoals; shinygaGetProfiles; shinygaGetSegments; shinygaGetUsers; shinygaGetWebProperties

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
shinygaGetSegments = function(token, start=1, max=1000) {
url <- paste('https://www.googleapis.com/analytics/v3/management/segments',
             '?access_token=', token,
             '&start-index=', start,
             '&max-results=', max,
             sep='', collapse='')

             return(processManagementData(url,
                    c('id', 'segmentId', 'name', 'definition', 'created', 'updated')))
                    }

## End(Not run)

MarkEdmondson1234/shinyga documentation built on May 7, 2019, 3:34 p.m.