rym (version 0.4.0)

rym_get_ga: Work with compatible with the Google Analytics Core Reporting API (v3)

Description

Allows you to perform the following operations: 1. Obtain information about site traffic and other data. 2. Integrate Yandex.Metrica data with applications developed with the Google Analytics Core Reporting API (v3) in mind. 3. Use the usual query parameters when collecting statistics, if you previously worked with the Google Analytics Core Reporting API (v3).

Usage

rym_get_ga(start.date = "10daysAgo", end.date = "today", 
  counter = NULL, dimensions = "ga:date,ga:sourceMedium", 
  metrics = "ga:sessions,ga:bounces,ga:users", 
  filters = NULL, sort = NULL, 
  sampling.level = "HIGHER_PRECISION", 
  login = NULL, token.path = getwd())

Arguments

start.date

Start date in format YYYY-MM-DD

end.date

End date in format YYYY-MM-DD

counter

Your yandex metrica counter

dimensions

List of dimensions fields, for example "ga:browser,ga:city", see dictionary of available dimension

metrics

List of metrics fields, for example "ga:users,ga:sessions", see dictionary of available metrics

filters

List of filtrind dimensions and metrics.

sort

Sorting fields

sampling.level

One of "HIGHER_PRECISION", "FASTER", "DEFAULT"

login

character, Your Yandex login

token.path

character, Directory for store API credential

Value

Data frame with fields.

Details

Limits: 10 metrics for one query. 7 dimensions for one query

References

Official ompatible with the Google Analytics Core Reporting API (v3) docs

See Also

For load statics you also can use rym_get_data() and rym_get_logs()

Examples

Run this code
# NOT RUN {
data <- rym_get_ga(start.date = "2017-08-01",
                   end.date = "yesterday",
                   counter = "ga:26841129",
                   metrics = "ga:sessions,ga:bounces,ga:users",
                   dimensions = "ga:date,ga:sourceMedium", 
                   login      = "my_login")
# }

Run the code above in your browser using DataCamp Workspace