-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `setDoNotTrack` configuration value has to be pushed to the `_paq`s _before_ the `trackPageView` setting. `trackPageView` seems to trigger the actual logging request when it is being processed. With the old state of the code, `setDoNotTrack` was set too late and never became effective. A request to the Matomo server would be sent in any case, relying on the server-side "do not track" privacy feature to be enabled. This change adds a new `enable_do_not_track` configuration setting which defaults to `true`. When you set it to `false`, the `setDoNotTrack` command will not be used. You can push it to the `_paq` array yourself, possibly depending on client-side logic. But remember: It has to be in the `_paq` array _before_ the `trackPageView` entry.
- Loading branch information
Showing
4 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters