mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-21 17:37:01 +01:00
Track snap uninstalls (#20624)
* Track snap uninstalls * Change order of execution
This commit is contained in:
parent
a292158324
commit
a1ae305711
@ -2050,6 +2050,15 @@ export default class MetamaskController extends EventEmitter {
|
||||
}, []);
|
||||
|
||||
this.dismissNotifications(notificationIds);
|
||||
|
||||
this.metaMetricsController.trackEvent({
|
||||
event: MetaMetricsEventName.SnapUninstalled,
|
||||
category: MetaMetricsEventCategory.Snaps,
|
||||
properties: {
|
||||
snap_id: truncatedSnap.id,
|
||||
version: truncatedSnap.version,
|
||||
},
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
|
@ -601,6 +601,7 @@ export enum MetaMetricsEventName {
|
||||
WhatsNewClicked = `What's New Link Clicked`,
|
||||
///: BEGIN:ONLY_INCLUDE_IN(snaps)
|
||||
SnapInstalled = 'Snap Installed',
|
||||
SnapUninstalled = 'Snap Uninstalled',
|
||||
SnapUpdated = 'Snap Updated',
|
||||
SnapExportUsed = 'Snap Export Used',
|
||||
///: END:ONLY_INCLUDE_IN
|
||||
|
Loading…
Reference in New Issue
Block a user