This is intended as a POC on how a AAv2 package could work, including OAuth2. I will not write this package, it is hoped someone can take it over.
This is a barebones skeleton for a package based on Tim Wilson's experiments with the Adobe Analytics v2.0 API here: http://rpubs.com/tgwilson/adobe-analytics-v2-rstats-basic-example
The OAuth2 information is found here: https://www.adobe.io/apis/experiencecloud/analytics/docs.html#!AdobeDocs/analytics-2.0-apis/master/create-oauth-client.md
It is untested.
It requires setting the following environment arguments:
AA_COMPANY_ID
AA_CLIENT_ID
AA_CLIENT_SECRET
ADOBE_API_RSID
(optional)Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.