@ncresswell opened this Issue on July 29th 2020

Hi there,

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 188.166.250.54:9010

image

@tsteur commented on July 29th 2020 Member

@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]);
@ncresswell commented on July 29th 2020

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.

@tsteur commented on July 29th 2020 Member

@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]);
@ncresswell commented on July 29th 2020

testing now, will revert with findings soon.

@deviantony commented on July 30th 2020

@tsteur works great, is there any way to override the website property as well?

portainer-app-2020-07-30-Web-Analytics-Reports-Matomo (1)

I'm not sure if the setDomains function can be used here.

@tsteur commented on July 30th 2020 Member

@ncresswell not sure what you mean by override the website property?

@deviantony commented on July 30th 2020

@tsteur I added the new comment :D check my screenshot above.

@tsteur commented on July 30th 2020 Member

You could try _paq.push(['setReferrerUrl', ''])

@deviantony commented on July 30th 2020

It seems to work fine, thanks for the quick update ! @ncresswell I think you can close that one.

@tsteur commented on July 30th 2020 Member

Thanks @deviantony glad it works!

This Issue was closed on August 15th 2020
Powered by GitHub Issue Mirror