How to get a custom dimension out of the API?


(Babak Fakhamzadeh) #1

I use this to get Page URLs out of the API:

https://analytics.babasprojects.com/?module=API&method=Actions.getPageUrls&idSite=2&date=today&period=week&format=json&filter_limit=20&token_auth={{my token}}

I have a custom dimension that I call like so:

_paq.push(['setCustomDimension', 1, window.location.href]);

How do I get what is recorded for this custom dimension out of the API like I do Actions.getPageUrls in the example above?