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

Feature request: Ignore tracking for request with DNT headers #1705

Open
kaushalyap opened this issue Mar 19, 2020 · 9 comments
Open

Feature request: Ignore tracking for request with DNT headers #1705

kaushalyap opened this issue Mar 19, 2020 · 9 comments

Comments

@kaushalyap
Copy link

@kaushalyap kaushalyap commented Mar 19, 2020

Please allow goaccess to filter out requests with DNT set to 1, this allows goaccess to respect user privacy.

FYI: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DNT

@allinurl

This comment has been minimized.

Copy link
Owner

@allinurl allinurl commented Mar 19, 2020

Do you know if it's logged on the access log somewhere?

@kaushalyap

This comment has been minimized.

Copy link
Author

@kaushalyap kaushalyap commented Mar 21, 2020

I do not know, I was considering goaccess as an open source alternative to Netlify analytics

@allinurl

This comment has been minimized.

Copy link
Owner

@allinurl allinurl commented Mar 21, 2020

I'm guessing since they are hosting the site for you, they can track the DNT header that way. For goaccess to track this, it will require to interact with the client, i.e. JS.

@kaushalyap

This comment has been minimized.

Copy link
Author

@kaushalyap kaushalyap commented Mar 22, 2020

You did not understand me correctly. No I am not using Netlify Analytics, I want same thing done by goaccess. I want to filter out requests with DND headers set to 1 with goaccess

@allinurl

This comment has been minimized.

Copy link
Owner

@allinurl allinurl commented Mar 24, 2020

I see. Once you get the DNT header logged into your access log, then goaccess should be able to parse that. This may give a hint if possible.

@kaushalyap

This comment has been minimized.

Copy link
Author

@kaushalyap kaushalyap commented Mar 24, 2020

Can we support DNT filtering through this library(goaccess)?

@allinurl

This comment has been minimized.

Copy link
Owner

@allinurl allinurl commented Mar 24, 2020

goaccess parses the log, it's not in charge of logging data so it's up to the server and perhaps a library of sort to support dnt. if dnt is available within the log, then goaccess could show stats about it.

@kaushalyap

This comment has been minimized.

Copy link
Author

@kaushalyap kaushalyap commented Mar 24, 2020

So please show stats about DNT

@allinurl

This comment has been minimized.

Copy link
Owner

@allinurl allinurl commented Mar 24, 2020

Feel free to use %v in your log-format to display them (assuming no vhost).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.