Last active
November 22, 2016 18:48
-
-
Save wmcraver/b6aa382be477bd2b17b8e91c61c25c43 to your computer and use it in GitHub Desktop.
Provides an way to check if eVars in Adobe Analytics are receiving data and also a way to see what the data look like.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(RSiteCatalyst) | |
library(dplyr) | |
library(lubridate) | |
SCAuth( | |
"key", | |
"secret", | |
"company" | |
) | |
rs = "reportsuitename" | |
evars = GetEvars(rs) | |
evars = filter(evars, enabled == "TRUE" | is.na(enabled)) | |
evars = evars[,c(3,1)] | |
eVarsTesting = data.frame() | |
for (i in 1:nrow(evars)) { | |
print(evars$id[i]) | |
x = QueueTrended( | |
rs, | |
today()-7, | |
today(), | |
metrics = c("uniquevisitors", "visits"), | |
elements = evars$id[i] | |
) | |
x$eVar = evars$id[i] | |
x$eVarName = evars$name[i] | |
eVarsTesting = rbind(eVarsTesting, x) | |
} | |
eVarsTesting = eVarsTesting[,c(8,9,1:7)] | |
write.csv(eVarsTesting, paste(rs, today(), "eVarsTesting.csv", sep = "-")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment