Merge pull request #4098 from aaronraimist/donottrack

Don't ask to enable analytics when Do Not Track is enabled
pull/21833/head
Michael Telatynski 2020-02-29 00:55:36 +00:00 committed by GitHub
commit dc3afb3e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -585,7 +585,8 @@ const LoggedInView = createReactClass({
limitType={usageLimitEvent.getContent().limit_type}
/>;
} else if (this.props.showCookieBar &&
this.props.config.piwik
this.props.config.piwik &&
navigator.doNotTrack !== "1"
) {
const policyUrl = this.props.config.piwik.policyUrl || null;
topBar = <CookieBar policyUrl={policyUrl} />;