mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Added metric Phishing Page Displayed for phishing warning page (#17462)
This commit is contained in:
parent
b4ecc4c3f5
commit
d63014a360
@ -3610,6 +3610,13 @@ export default class MetamaskController extends EventEmitter {
|
||||
hostname,
|
||||
phishingTestResponse,
|
||||
);
|
||||
this.metaMetricsController.trackEvent({
|
||||
event: EVENT_NAMES.PHISHING_PAGE_DISPLAYED,
|
||||
category: EVENT.CATEGORIES.PHISHING,
|
||||
properties: {
|
||||
url: hostname,
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -333,6 +333,7 @@ export const EVENT_NAMES = {
|
||||
PERMISSIONS_APPROVED: 'Permissions Approved',
|
||||
PERMISSIONS_REJECTED: 'Permissions Rejected',
|
||||
PERMISSIONS_REQUESTED: 'Permissions Requested',
|
||||
PHISHING_PAGE_DISPLAYED: 'Phishing Page Displayed',
|
||||
PORTFOLIO_LINK_CLICKED: 'Portfolio Link Clicked',
|
||||
PUBLIC_ADDRESS_COPIED: 'Public Address Copied',
|
||||
PROVIDER_METHOD_CALLED: 'Provider Method Called',
|
||||
@ -393,6 +394,7 @@ export const EVENT = {
|
||||
NAVIGATION: 'Navigation',
|
||||
NETWORK: 'Network',
|
||||
ONBOARDING: 'Onboarding',
|
||||
PHISHING: 'Phishing',
|
||||
RETENTION: 'Retention',
|
||||
SETTINGS: 'Settings',
|
||||
SNAPS: 'Snaps',
|
||||
|
Loading…
Reference in New Issue
Block a user