rym_get_ga

0th

Percentile

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

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

Details

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

Value

Data frame with fields.

References

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

Run vignette("rym-ga-api", package = "rym") to see the corresponding vignette.

See Also

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

Aliases
  • rym_get_ga
Examples
# 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")
# }
Documentation reproduced from package rym, version 0.5.1, License: GPL-2

Community examples

Looks like there are no examples yet.