How Can I Associate a Page With a Unique ID Rather Than URL or Title


#1

Using the javascript reporting tool, I want to send a known unique ID for specific pages on my site, such that in the Actions.getPageUrls call later, this unique ID is displayed.

From what I understand, I use something like this: _paq.push([‘setCustomVariable’, 1, ‘Identifier’, ‘{{ page.identifier }}’, ‘page’]);

But I can’t see it in the output of the API call: https://analytics.domain/com/?module=API&method=Actions.getPageUrls&flat=1&period=day&date=today&format=json&idSite=1&filter_limit=100&token_auth=DEADBEEF

My end desire is to get a unique ID from the API call that I can associate with a post on my system without having to compare URL or title strings. Can somebody help?


#2

Or is there a way to override the “label” value generated by piwik from the JS tracker api?