Bug 1764070 - Differentiate between auto advance and user click when sending Spotlight/AboutWelcome event telemetry r=Mardak

Differential Revision: https://phabricator.services.mozilla.com/D143767
This commit is contained in:
Meg Viar
2022-04-19 22:43:15 +00:00
parent 981cdb1fea
commit 19b16d1f64
5 changed files with 24 additions and 11 deletions

View File

@@ -13,9 +13,9 @@ export const AboutWelcomeUtils = {
message_id: messageId,
});
},
sendActionTelemetry(messageId, elementId) {
sendActionTelemetry(messageId, elementId, eventName = "CLICK_BUTTON") {
const ping = {
event: "CLICK_BUTTON",
event: eventName,
event_context: {
source: elementId,
page: "about:welcome",