With the help of Web Services API R-studio can be used to connect Adobe Analytics.
The Web Services APIs provide programmatic access to marketing reports and other Suite services that let you duplicate and augment functionality available through the Analytics interface.
Analytics > Admin > Company Settings > Web Services
RSiteCatalyst is a kind of good package of R.
SCAuth Store Credentials For The Adobe Analytics API
SCAuth(key, secret, company = “”, token.file = “”, auth.method = “legacy”, debug.mode = FALSE, endpoint = “”, locale = “en_US”)
Client id from your app in the Adobe Marketing cloud Dev Center OR if you are using auth.method=’legacy’, then this is the API username (username:company)
Secret from your app in the Adobe Marketing cloud Dev Center OR if you are using auth.method=’legacy’, then this is the API shared secret
Your company (only required if using OAUTH2 AUTH method)
If you would like to save your OAUTH token and other auth details for use in future sessions, specify a file here. The method checks for the existence of the file and uses that if available.
Defaults to legacy, can be set to ‘OAUTH2’ to use the newer OAUTH method.
Set global debug mode
Set Adobe Analytics API endpoint rather than let RSiteCatalyst decide (not recommended)
Set encoding for reports (defaults to en_US)
Authorize and store credentials for the Adobe Analytics API
Global credentials list ‘SC.Credentials’ in AdobeAnalytics (hidden) environment
The list of locale values can be obtained from the Adobe Analytics documentation:
After loading the library by library(RSiteCatalyst) command use the below command to authenticate.
Note:It a sample for example purpose only,use your own correct user key and secret.
Sample Code :
metrics = “visits”,
elements = c(“evar10″,”mobiledevicetype”),
segment.id = c(“s300000988_5be8bc302b36874afe33502f”,”s300000899_5bedfc3e706e9e558c910e1a”),
date.granularity = “day”,
interval.seconds = 300,
top = 30000
,expedite = TRUE
,enqueueOnly = TRUE
trended<-GetReport(trended_id, interval.seconds = 5, max.attempts = 5)
Note: RSiteCatalyst is a community-driven, open-source effort, not an official package from Adobe. As such, bug fixes and improvements rely on a vibrant community of users and developers contributing their free time and resources.