ABP: Add command name and version to IPM event object
Background / User story
To make it easier for the IPM to associate events with the commands that lead to them, we decided to add the command name and version to the event data we send back to it.
Relevant links
- Internal documentation: https://www.notion.so/adblock/Telemetry-and-User-Event-Data-371f5dd34d1c4f00860c7b2e6bfca577?pvs=4#ccbdc35b72d140b181a68c71132aae7c
What to change
- Design: N/A
- Research: N/A
- Spec: N/A
- Legal: TBD
-
Development: Add two new properties,
command_name
andcommand_version
to theattributes
object of theevents
object sent back to the IPM server.
Hints for testers
When the extensions sends a ping to the IPM server, and there is an events
object because there was an event happening in reaction to an IPM command (such as an on-page-dialog was closed by a user), these two new properties should be sent along. The command_version
should be 1
, and the command_name
should be create_on_page_dialog
.
Hints for translators
N/A
Edited by Thomas Greiner