내 커뮤니티 업적 표시줄을 확대합니다.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

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 채택된 해결책 개

Avatar

정확한 답변 작성자:
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...

원본 게시물의 솔루션 보기

4 답변 개

Avatar

정확한 답변 작성자:
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?

Avatar

Employee
Yes, your understanding is correct. It's described here as well: https://experienceleague.adobe.com/docs/analytics/implementation/vars/page-vars/pageurl.html?lang=en

Avatar

Level 2
Thank you for confirming, @HemanginiS!