-
Notifications
You must be signed in to change notification settings - Fork 46
add DNT and X_DO_NOT_TRACK header support #32
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
add DNT and X_DO_NOT_TRACK header support #32
Conversation
@mattab I think the tests are failing but are unrelated to the PR. Could you please have a look? Thank you. |
@mattab additionally the php versions which are tested seem to be outdated. there is a test for php 5.4 and 5.5 which are EOL and there are not tests for 7.1 or 7.2. I'd suppose changing the test envs to 5.6, 7.1 and 7.2 |
I've disable the DNT specific tests again, as I now understood that the answer from piwik.php does NOT include the DNT headers, as piwik.php does only forward them to matomo without any trace in the answer, |
… with status 200 if we set the DNT headers.
Thanks for the PR @level420 , made a couple tweaks to it based on matt's review & merging now. |
This is a replacement for #24 which adds forwarding of the DNT and X_DO_NOT_TRACK header support.
Both headers are forwarded separately which allows matomo to handle them independently.
Tests are added for both headers.