1
0
Fork 0

Track snap uninstalls (#20624)

* Track snap uninstalls

* Change order of execution
This commit is contained in:
Frederik Bolding 2023-08-28 15:27:52 +02:00
parent a292158324
commit a1ae305711
2 changed files with 10 additions and 0 deletions

View File

@ -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,
},
});
},
);

View File

@ -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