Closed meidata closed 8 years ago
Try with fetch.by = "day"
.
It works, thank you very much!
Hi Artem,
When i changed to the day, it works, but when i ran the second time, it showed the following error,
Do you know why?
ga_data <- get_ga(id, start.date = "2016-06-11", end.date = "today",
metrics = "ga:sessions",
dimensions = "ga:dimension8, ga:pagePath",
samplingLevel = "HIGHER_PRECISION",
fetch.by = "day",max.results=NULL)
Batch processing mode enabled.
Fetch data by day: from 2016-06-11 to 2016-07-11.
|====================================================================| 100%
Error in vapply(x, function(x) as.numeric(x[[name]]), numeric(1)) :
values must be length 1,
but FUN(X[[1]]) result is length 0
Thank you in advance,
Meiyi
Try the latest dev version from the git repo. This bug was fixed in ef53f0a9ae78b4b72207e932369ee0740b0538ef.
Thank you so much Artem,
Sorry but i have another question, i manully check the GA for a custom report, there is 5,414,236 rows but when i export it in R using the fetch.by, it only returned 2526 records, have you encountered this problem?
Hi Artem,
I am using the RGA to perform analysis in R, My google analytic account is google analytics Premium, And I am running this script following to get the the data, but it showed
I have already set the
samplingLevel
andfetch.by
parameters in theget_ga()
Do you know how can i get 100% sessions instead of 46%?
Thank you in advance!!
Meiyi