Created
July 25, 2017 23:11
-
-
Save lizturp/6f92e8a45cd9542e6a3e69ff73858520 to your computer and use it in GitHub Desktop.
Basic script to test pulling a report from omniture.
This file contains 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
#!/usr/bin/Rscript | |
library("RSiteCatalyst") | |
project_name <- "testing-omniture" | |
rsid <- "REPORT-SUITE-ID" | |
rsid_friendly <- "FRIENDLY-NAME" | |
today_dt <- Sys.Date() | |
date.1.start <- Sys.Date()-3 | |
date.1.end <- Sys.Date()-1 | |
my_elements <- c("prop9") | |
my_metrics <- c("pageviews") | |
my_segment <- "5xe1x51xe4x0acx00xa0x400" | |
SCAuth("USERNAME", "TOKEN") | |
fdc.testing.recent <- QueueRanked( | |
rsid, | |
date.from = date.1.start, | |
date.to = date.1.end, | |
elements = my_elements, | |
metrics = my_metrics, | |
segment.id = my_segment, | |
top = "10000", | |
data.current = FALSE | |
) | |
print(fdc.testing.recent) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment