Skip to content

Instantly share code, notes, and snippets.

@rwatts3
Created January 23, 2019 18:32
Show Gist options
  • Save rwatts3/dc0a7a9768b243a51edf0da09a4b73e7 to your computer and use it in GitHub Desktop.
Save rwatts3/dc0a7a9768b243a51edf0da09a4b73e7 to your computer and use it in GitHub Desktop.
gaQuery
data1 <- google_analytics(
viewId = gaviewId,
date_range = c(previousDay, previousDay),
dimensions = c("ga:campaign", "ga:sourceMedium", "ga:deviceCategory", "ga:country", "ga:city", "ga:dateHour", "ga:userGender"),
metrics = c("ga:pageViews", "ga:sessions"),
filtersExpression = "",
samplingLevel = "SMALL"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment