mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Track snap uninstalls (#20624)
* Track snap uninstalls * Change order of execution
This commit is contained in:
parent
64aef2a1c9
commit
4374e536a1
@ -2092,6 +2092,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,
|
||||
},
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
|
@ -627,6 +627,7 @@ export enum MetaMetricsEventName {
|
||||
SwapError = 'Swap Error',
|
||||
///: 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