Skip to content

Commit 31f0ffc

Browse files
committed
Don't capture opt-out metrics
1 parent ba1becb commit 31f0ffc

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

ui/pages/first-time-flow/metametrics-opt-in/metametrics-opt-in.component.js

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -105,29 +105,7 @@ export default class MetaMetricsOptIn extends Component {
105105
onCancel={async () => {
106106
await setParticipateInMetaMetrics(false);
107107

108-
try {
109-
if (
110-
participateInMetaMetrics === null ||
111-
participateInMetaMetrics === true
112-
) {
113-
await trackEvent(
114-
{
115-
category: EVENT.CATEGORIES.ONBOARDING,
116-
event: 'Metrics Opt Out',
117-
properties: {
118-
action: 'Metrics Option',
119-
legacy_event: true,
120-
},
121-
},
122-
{
123-
isOptIn: true,
124-
flushImmediately: true,
125-
},
126-
);
127-
}
128-
} finally {
129-
history.push(nextRoute);
130-
}
108+
history.push(nextRoute);
131109
}}
132110
cancelText={t('noThanks')}
133111
hideCancel={false}

0 commit comments

Comments
 (0)