Hello everyone,
I have some HR pages in our Mediawiki site and I am trying the find if it is possible to get the user/visitor information on a given page. I am using the getPageURL api call to get other metrics, but can I get the user ID and location somehow(users access the site from across the world)?
In a nutshell, If I have page HR_Information, can I get user John Smiths information through the API or some other option?
Thank you and appreciate any help!
Hi @DrpepperUser
I don’t understand what kind of HR data you want to get with Matomo.
But you can use most of APIs thanks to segments.
Eg.:
https://demo.matomo.cloud/?module=API&method=UserCountry.getCountry&idSite=1&period=day&date=yesterday&format=JSON&token_auth=anonymous&segment=userId==momofdivers
Thank you so much for your response!
Not necessarily HR data but the data from users who visit a page under the HR category. Is the segment portion “filtering” where the userId is equal to momofdivers?
Is it possible to segment on a pageURL and get user or all user information for that page, without having userIds beforehand? Something like:
https://demo.matomo.cloud/?module=API&method=UserCountry.getCountry&idSite=1&period=day&date=last90&format=JSON&token_auth=anonymous&segment=pageURL==HR_Information
Thanks again for you help!