How to granularly control access for anonymous user

Hi,
I would like to use the matomo API to access a user’s location. In order for this to work I need to grant view access for the anonymous user.

I would like to hide any data on the anonymous dashboard so a curious passer by can’t see visitor data from other users than himself. I would prefer if I could hide everything. Is this somehow possible?

Hi,

Unfortunately this is not (yet) possible. (I think Provide ability to restrict auth tokens to site, access, scope · Issue #15368 · matomo-org/matomo · GitHub describes this).

One way to circumvent this would be to write a simple PHP script that fetches just this one API data (with the API key) and then forwards it to anyone that requests it.