Expand my Community achievements bar.

SOLVED

API: Get a page URL from the itemId

Avatar

Level 2

Hi, I'm looking to do exactly what is described here: https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/adobe-analytics-2-0-api/q...: Fetch metrics by page URL.


I've found out that the dimension to use is 'variables/page', but as the pages are named in my demo data, I get the name in the objects of the response: (I can't paste any JSON object to illustrate that, it makes my posts disappearing, but it contains a itemId, a value which is the name, and the data)

 

Now, how can we associate the itemId with an actual URL? The linked post mention to make a separate breakdown call, but I can't find the concrete endpoint to do that in the API.

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @sbellone ,
If you are capturing page URL in any variable (eVar/prop) then the easiest way would be to create a similar report in Workspace by breaking down Page with Page URL (your custom variable) and then use the Workspace debugger to copy that JSON request and try that out in Swagger under /reports endpoint.

HemanginiS_0-1624926963362.png

Approach best described in this video: https://experienceleague.adobe.com/docs/analytics-learn/tutorials/apis/using-analysis-workspace-to-b...

View solution in original post

4 Replies

Avatar

Correct answer by
Employee

Hi @sbellone ,
If you are capturing page URL in any variable (eVar/prop) then the easiest way would be to create a similar report in Workspace by breaking down Page with Page URL (your custom variable) and then use the Workspace debugger to copy that JSON request and try that out in Swagger under /reports endpoint.

HemanginiS_0-1624926963362.png

Approach best described in this video: https://experienceleague.adobe.com/docs/analytics-learn/tutorials/apis/using-analysis-workspace-to-b...

Avatar

Level 2
I see. So, since eVar are trucated to 255 bytes, do I understand correctly that there is no way to have the full page URL in Adobe Analytics if the URL's lenght of some pages is more than 255 chars?