Description Usage Arguments Value See Also Examples
Internal function for returning a dataframe from API response
1 | processManagementData(url, keep)
|
url |
The GA API response URL. |
keep |
Which colums to keep. |
A dataframe of GA data.
Other fetch data functions: MEgetData
;
getAndMergeGAAccounts
;
rollupGA
; shinygaGetAccounts
;
shinygaGetAdWords
;
shinygaGetCustomDataSources
;
shinygaGetCustomDimensions
;
shinygaGetCustomMetrics
;
shinygaGetFilters
;
shinygaGetGoals
;
shinygaGetProfiles
;
shinygaGetSegments
;
shinygaGetUsers
;
shinygaGetWebProperties
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.