Skip to content

Commit

Permalink
Add link to privacy blog
Browse files Browse the repository at this point in the history
  • Loading branch information
eliorivero committed Mar 23, 2018
1 parent b60967b commit f12abe0
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions _inc/client/privacy/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ const trackPrivacyPolicyView = () => analytics.tracks.recordJetpackClick( {
feature: 'privacy'
} );

const trackPrivacyBlogView = () => analytics.tracks.recordJetpackClick( {
target: 'privacy-blog',
feature: 'privacy'
} );

class Privacy extends React.Component {
static displayName = 'PrivacySettings';

Expand Down Expand Up @@ -77,13 +82,28 @@ class Privacy extends React.Component {
} )
}
</p>
<ModuleToggle
compact
activated={ getOptionValue( 'disable_tracking' ) }
toggling={ isSavingAnyOption( 'disable_tracking' ) }
toggleModule={ this.togglePrivacy }>
{ __( 'Send usage statistics to help us improve our products.' ) }
</ModuleToggle>
<p>
<ModuleToggle
compact
activated={ getOptionValue( 'disable_tracking' ) }
toggling={ isSavingAnyOption( 'disable_tracking' ) }
toggleModule={ this.togglePrivacy }>
{ __( 'Send usage statistics to help us improve our products.' ) }
</ModuleToggle>
</p>
<p>
{ __(
'Visit the {{a}}Privacy blog{{/a}} to learn more about it in Automattic and WordPress.', {
components: {
a: <ExternalLink
href="https://privacy.blog/"
onClick={ trackPrivacyBlogView }
target="_blank" rel="noopener noreferrer"
/>
}
} )
}
</p>
</SettingsGroup>
</SettingsCard>
</div>
Expand Down

0 comments on commit f12abe0

Please sign in to comment.