Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
Add note about fetch.by. Closes #15
Browse files Browse the repository at this point in the history
  • Loading branch information
artemklevtsov committed Jan 29, 2016
1 parent 04904e3 commit 96e6f7e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions man-roxygen/get_report.R
Expand Up @@ -4,6 +4,6 @@
#' @param samplingLevel character. The desired sampling level. Allowed values: "DEFAULT", "FASTER", "HIGHER_PRECISION".
#' @param start.index integer. An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
#' @param max.results integer. The maximum number of entries to include in this feed.
#' @param fetch.by character. Split the query by date range. Allowed values: "day", "week", "month", "quarter", "year".
#' @param token \code{\link[httr]{Token2.0}} class object with a valid authorization data.
#' @param fetch.by character. Split the query by date range. Allowed values: "day", "week", "month", "quarter", "year". It does not work correctly with the \code{ga:users} and \code{ga:NdayUsers} metrics.
#' @param token \code{\link[httr]{Token2.0}} class object with a valid authorization data.
#' @family Reporting API
2 changes: 1 addition & 1 deletion man/get_ga.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/get_mcf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vignettes/reporting-api.Rmd
Expand Up @@ -81,6 +81,8 @@ get_ga(profileId = XXXXXXXX, start.date = date, end.date = date,

`fetch.by` allowed in the `get_ga()` and `get_mcf()` functions. We recomend you move from large to smaller date ranges until a sampling data occurs.

Note: `fetch.by` with the `ga:users` and `ga:NdayUsers` metrics is not correct because total users value for several days is not the sum of values for each single day. For details see the [documentation](https://support.google.com/analytics/answer/2992042).

## References

- [Core Reporting API - Dimensions & Metrics Reference](https://developers.google.com/analytics/devguides/reporting/core/dimsmets)
Expand Down

0 comments on commit 96e6f7e

Please sign in to comment.