Is it possible to not store (or to anonymize) the IP address / Hostname of the web asset that is being tracked?
We want to use this in our Single Page Application, and with this IP address / Hostname visible, it would allow us to see the address details for every deployment of our application at our users sites. This is a privacy concern.
As you can see in the pic below, i can see that a deployed instance of our application is running on 22.214.171.124:9010
@ncresswell thanks for creating this issue. Would it help to always track the same host? Then you could set eg
_paq.push(['setCustomUrl', 'https://myfixdomain.com' + window.location.pathname + location.search]);
We have 100's of thousands of instances of our application deployed around the world... we dont want to know WHERE they are deployed, just that they are, and then get some usage info about how its used.
@ncresswell would this not work with above JS in https://github.com/matomo-org/matomo/issues/16252#issuecomment-665431341 which would basically set a fixed domain/hostname (instead of removing it)?
What could maybe also work (haven't tested it) is:
_paq.push(['setCustomUrl', window.location.pathname.substr(1) + location.search]);
testing now, will revert with findings soon.
@tsteur works great, is there any way to override the website property as well?
I'm not sure if the
setDomains function can be used here.
@ncresswell not sure what you mean by override the website property?
@tsteur I added the new comment :D check my screenshot above.
You could try
It seems to work fine, thanks for the quick update ! @ncresswell I think you can close that one.