I'm currently trying to create a dashboard of all live activities within Adobe Target along with some high level KPIs (Revenue, Revenue Confidence, Orders, Order Confidence). I'm using the target activities API to retrieve a list of all the live activities which is working as expected. After I have a list of the activities, I'm trying to pull in the current data for each activity experience via the Analytics API (using A4T). This has been a struggle. I'm wondering if anyone has experience doing something like this? Currently, I'm having trouble retrieving the experience data from a specific activity. Any help/guidance would be appreciated!
Topics help categorize Community content and increase your ability to discover relevant content.
Hi @paul53181,
Sharing some troubleshooting strategy that may help to debug the issue:
@Akanksha_Singh, thank you for the reply! I believe that the A4T integration are correct. I'm able to see the reports directly in analytics and I'm also seeing the correct experience names being returned for each activity. However, the data corresponding to the experience is either incorrect or not being returned at all. My guess is that I'm trying to retrieve the experiences the wrong way. To help me understand, can you possibly provide an example of how I would retrieve the number of visitors in each experience within an activity?
Hi @paul53181 ,
You can use Analytics Workspace to analyse your Target activities and experiences. You can also dig deeper using tables and visualizations.
For detailed information and examples, open the Analytics & Target: Best Practices for Analysis tutorial, provided by Adobe Experience League.
Sharing a tutorial video for your reference. This might help you to understand how to retrieve the number of visitors in each experience within an activity.
https://youtu.be/fuWN8OR6JmQ
Hope this helps!
Best Regards,
Vaibhav Mathur
Thank you for responding @Vaibhav_Mathur! I'm hoping to use the analytics API to automate my own dashboard (not within Analytics Workspace) using node.js
Does anyone know the correct dimension to access an Adobe Target Activity? When I retrieve a list of available dimensions (via analytics reporting api), I don't see anything related to target. I've seen "variables/targetRaw" used in other code examples. However, this does not seem to work for me.
Views
Replies
Total Likes
After doing some more playing around on this, I've found that these dimensions exist (listed below). However, I cannot find any documentation on them anywhere. The issue I'm having is trying to figure out how to filter for a specific activity & the experiences related to the activity.
Dimensions:
targetraw
targetraw.activity
targetraw.experience
If anyone has documentation on these or how I could filter to the activity & related experiences (from the activity), it would be greatly appreciated!
Views
Replies
Total Likes
When trying to access activities (using Postman/AA reporting api), I'm able return all activities. However, I cannot figure out how to retrieve one specific activity alone.
Request body that returns all activities:
{
"rsid": "xxxxxx",//RSID here
"globalFilters": [
{ "type": "dateRange", "dateRange": "2024-10-01T00:00:00/2024-10-31T23:59:59" },
{ "type": "segment", "segmentId": "xxxxxx" }//Segment ID here
],
"metricContainer": {
"metrics": [
{ "columnId": "1", "id": "metrics/visitors" },
{ "columnId": "2", "id": "metrics/revenue" },
{ "columnId": "3", "id": "metrics/orders" }
]
},
"dimension": "variables/targetraw.activity",
"settings": {
"countRepeatInstances": true,
"limit": 500,
"page": 0,
"nonesBehavior": "return-nones"
}
}
Attempt to return one specific activity by ID returns empty data:
{
"rsid": "xxxxxx",//RSID here
"globalFilters": [
{ "type": "dateRange", "dateRange": "2024-10-01T00:00:00/2024-10-31T23:59:59" },
{ "type": "segment", "segmentId": "xxxxxx" },//Segment ID here
{
"type": "breakdown",
"dimension": "variables/targetraw.activity",
"itemId": "601884" // Replace with the actual activity id
}
],
"metricContainer": {
"metrics": [
{ "columnId": "1", "id": "metrics/visitors" },
{ "columnId": "2", "id": "metrics/revenue" },
{ "columnId": "3", "id": "metrics/orders" }
]
},
"dimension": "variables/targetraw.activity",
"settings": {
"countRepeatInstances": true,
"limit": 500,
"page": 0,
"nonesBehavior": "return-nones"
}
}
Does anyone know how to return the data for a specific activity?
Views
Replies
Total Likes
For anyone that happens to stumble upon this looking to do something similar, I was able to eventually accomplish the goal of creating a live activity dashboard (I used a Node JS project). Here are some of the steps I took:
1. Request activity data through the Adobe Target "List Activities" endpoint.
- Filter the results as needed. I removed any inactivities by using the activity status + start/end dates.
- Save as JSON file
2. Request all the activities via the Adobe Analytics Reporting API endpoint.
- Use the dimension "variables/targetraw.experience" (I could not find any documentation on this dimension and it was not listed when using the API to see which dimensions were available. Don't ask how I found it).
- Save as JSON file
3. Merge the "itemId" from the analytics data (and anything else you might want to capture). The itemID is not the same thing as the ActivityID and is specific to Analytics. I created a new JSON file with the merged target activity data & analytics data.
4. After you have the Analytics itemId you can use the Analytics Reporting API to retrieve the experience level data using the "variables/targetraw.experience" dimension (again, I could not find any documentation on this).
I hope this helps!
Views
Replies
Total Likes
Views
Likes
Replies