I am using Adobe Analytics Reporting API, where I have a custom dimension 'Page Name' and 'UserID'. 'Page views' and 'Unique Visitor' are the metrics that we want. Using the API we want a breakdown of every Page Name with the User ID - page views and unique visitors metrics.
However, we are unable to get the desired response. Could someone help on this?
Thanks.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @jane_12
Step 1 - Generate the list of the pages
{
"rsid": "YOUR_RSID",
"globalFilters": [
{ "type": "dateRange", "dateRange": "2025-07-01T00:00:00.000/2025-07-31T23:59:59.999" }
],
"metricContainer": {
"metrics": [
{ "id": "metrics/pageviews" },
{ "id": "metrics/visitors" }
]
},
"dimension": "variables/page",
"settings": { "limit": 5000, "countRepeatInstances": true, "dimensionSort": "asc" }
}
You can get more info on this from: https://developer.adobe.com/analytics-apis/docs/2.0/guides/endpoints/reports/
The generated list will give you the item IDs and the values for the pages.
Step 2 - Loop the breakdown
{
"rsid": "YOUR_RSID",
"globalFilters": [
{ "type": "dateRange", "dateRange": "2025-07-01T00:00:00.000/2025-07-31T23:59:59.999" }
],
"metricContainer": {
"metrics": [
{ "id": "metrics/pageviews" },
{ "id": "metrics/visitors" }
],
"metricFilters": [
{
"id": "bf1",
"type": "breakdown",
"dimension": "variables/page",
"itemId": "123456789"
// or: "itemValue": "Home"
}
]
},
"dimension": "variables/evar42",
"settings": { "limit": 50000, "countRepeatInstances": true }
}
*If you want to only look at specific pages, you can use their values instead of the itemId.
Hope this helps.
Dan
Update:
I noticed the link I used in the reply was broken:
https://developer.adobe.com/analytics-apis/docs/2.0/guides/endpoints/reports/breakdowns/
Views
Replies
Total Likes
Hi @jane_12 ,
You basically want a nested breakdown in Adobe Analytics Reporting API:
POST https://analytics.adobe.io/api/{GLOBAL_COMPANY_ID}/reports
x-api-key: {API_KEY}
x-proxy-global-company-id: {GLOBAL_COMPANY_ID}
Authorization: Bearer {ACCESS_TOKEN}
Content-Type: application/json
{
"rsid": "{REPORT_SUITE_ID}",
"globalFilters": [
{
"type": "dateRange",
"dateRange": "2024-07-01T00:00:00/2024-07-31T23:59:59"
}
],
"metricContainer": {
"metrics": [
{ "id": "metrics/pageviews" },
{ "id": "metrics/uniquevisitors" }
]
},
"dimension": "variables/pagename",
"settings": {
"limit": 50,
"page": 0
},
"search": {
"clause": ""
},
"children": [
{
"dimension": "variables/userid",
"settings": {
"limit": 50
}
}
]
}
Thanks.
Pradnya
Views
Replies
Total Likes
we have tried both ways but we are getting just onde dimension data in our response.
Views
Replies
Total Likes
Hi @jane_12,
What you can try, if you are comfortable using the API, is enable debugging:
Once your report is generated, you can click on the 'bug' icon in the Workspace to let Adobe generate a JSON that should allow you to extract a copy of the report via API using that code.
this was the very first approach we did, however the response we are getting is not correct.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies