Skip to content

[Bug]: Blockaid "External Link Clicked" events are missing from certain transaction types #22667

@digiwand

Description

@digiwand

What is this about?

This fixes the current implementation of our "External Link Clicked" events by adding the missing events for certain transactions

note: Plans to remove these "External Link Clicked" events are happening along with this PR to move the event into the transaction metric events.

https://github.com/MetaMask/MetaMask-planning/issues/1756#issuecomment-1894363798

[...] not all instances of the BlockaidBannerAlert are firing the event.

instances supported:
ui/components/app/signature-request/signature-request.js
ui/components/app/transaction-alerts/transaction-alerts.js

instances not supported:
ui/components/app/signature-request-original/signature-request-original.component.js
ui/pages/confirm-approve/confirm-approve-content/confirm-approve-content.component.js
ui/pages/token-allowance/token-allowance.js
ui/components/app/signature-request-siwe/signature-request-siwe.js

For more information about removing the event being handled here, see:

Scenario

No response

Design

No response

Technical Details

No response

Threat Modeling Framework

No response

Acceptance Criteria

No response

Stakeholder review needed before the work gets merged

  • Engineering (needed in most cases)
  • Design
  • Product
  • QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
  • Security
  • Legal
  • Marketing
  • Management (please specify)
  • Other (please specify)

References

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions