Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4098 from aaronraimist/donottrack
Browse files Browse the repository at this point in the history
Don't ask to enable analytics when Do Not Track is enabled
  • Loading branch information
t3chguy authored Feb 29, 2020
2 parents 0c4897a + 3a7454a commit dc3afb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/structures/LoggedInView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} />;
Expand Down

0 comments on commit dc3afb3

Please sign in to comment.