Learn R Programming

RGoogleAnalyticsPremium (version 0.1.1)

Unsampled Data in R for Google Analytics Premium Accounts

Description

It fires a query to the API to get the unsampled data in R for Google Analytics Premium Accounts. It retrieves data from the Google drive document and stores it into the local drive. The path to the excel file is returned by this package. The user can read data from the excel file into R using read.csv() function.

Copy Link

Version

Install

install.packages('RGoogleAnalyticsPremium')

Monthly Downloads

181

Version

0.1.1

License

Apache License 2.0

Maintainer

Jalpa Dave

Last Published

November 2nd, 2015

Functions in RGoogleAnalyticsPremium (0.1.1)

Init

Initialize the Google Analytics query parameters
RefreshToAccessToken

This function takes the Refresh Token as an argument and retrives a new Access Token based on it
ValidateToken

Check whether the Access Token has expired
GetFile

Query the Google Analytics Premium API for the specified dimensions, metrics and other query parameters
QueryBuilder

Initialize a QueryBuilder object with the given parameters and perform validation
GetPostResponse

This will request (POST method) with the prepared Query to the Google Analytics and returns the response in R object (res).
ToBody

Returns the URI constructed from the parameter settings. This also URI-encodes all the values in each query parameter.
Auth

Authorize the RGoogleAnalytics package to the user's Google Analytics Account using OAuth2.0