Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to Remove domain/hostname #16252

Closed
ncresswell opened this issue Jul 29, 2020 · 10 comments
Closed

Way to Remove domain/hostname #16252

ncresswell opened this issue Jul 29, 2020 · 10 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@ncresswell
Copy link

ncresswell commented Jul 29, 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
Copy link
Member

tsteur commented Jul 29, 2020

@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
Copy link
Author

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
Copy link
Member

tsteur commented Jul 29, 2020

@ncresswell would this not work with above JS in #16252 (comment) 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
Copy link
Author

testing now, will revert with findings soon.

@deviantony
Copy link

@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
Copy link
Member

tsteur commented Jul 30, 2020

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

@deviantony
Copy link

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

@tsteur
Copy link
Member

tsteur commented Jul 30, 2020

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

@deviantony
Copy link

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

@tsteur
Copy link
Member

tsteur commented Jul 30, 2020

Thanks @deviantony glad it works!

@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

4 participants