Bug 1851036 - Add events for displaying the shopping component's address bar icon r=Gijs,TravisLong

Differential Revision: https://phabricator.services.mozilla.com/D187230
This commit is contained in:
Perry McManis 2023-09-08 13:43:17 +00:00
parent 71bedd3d83
commit efd25593ba
2 changed files with 24 additions and 0 deletions

View File

@ -10118,6 +10118,13 @@ var ShoppingSidebarManager = {
let isCurrentBrowserProduct = isProductURL(
gBrowser.selectedBrowser.currentURI
);
// Only record if the state of the icon will change from hidden to visible.
if (button.hidden && isCurrentBrowserProduct) {
console.log("visibility of shopping address bar icon changed");
Glean.shopping.addressBarIconDisplayed.record();
}
button.hidden = !isCurrentBrowserProduct;
button.setAttribute("shoppingsidebaropen", !!this.isActive);
let l10nId = this.isActive

View File

@ -371,3 +371,20 @@ shopping:
- fx-desktop-shopping-eng@mozilla.com
send_in_pings:
- events
address_bar_icon_displayed:
type: event
description: |
The Shopping product Address Bar Icon was displayed to the user.
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1851036
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1841892
data_sensitivity:
- interaction
expires: 122
notification_emails:
- betling@mozilla.com
- fx-desktop-shopping-eng@mozilla.com
send_in_pings:
- events