Bug 1454298 - Add utm_source and utm_medium parameters to DevTools menu links; r=jryans
MozReview-Commit-ID: BVn1DXBdaMY
--- a/devtools/client/framework/components/toolbox-toolbar.js
+++ b/devtools/client/framework/components/toolbox-toolbar.js
@@ -407,26 +407,32 @@ function showMeatballMenu(
menu.append(new MenuItem({ type: "separator" }));
}
// Getting started
menu.append(new MenuItem({
id: "toolbox-meatball-menu-documentation",
label: L10N.getStr("toolbox.meatballMenu.documentation.label"),
click: () => {
- openWebLink("https://developer.mozilla.org/docs/Tools", toolbox);
+ openWebLink(
+ "https://developer.mozilla.org/docs/Tools?utm_source=devtools&utm_medium=tabbar-menu",
+ toolbox
+ );
},
}));
// Give feedback
menu.append(new MenuItem({
id: "toolbox-meatball-menu-community",
label: L10N.getStr("toolbox.meatballMenu.community.label"),
click: () => {
- openWebLink("https://discourse.mozilla.org/c/devtools", toolbox);
+ openWebLink(
+ "https://discourse.mozilla.org/c/devtools?utm_source=devtools&utm_medium=tabbar-menu",
+ toolbox
+ );
},
}));
const rect = menuButton.getBoundingClientRect();
const screenX = menuButton.ownerDocument.defaultView.mozInnerScreenX;
const screenY = menuButton.ownerDocument.defaultView.mozInnerScreenY;
// Display the popup below the button.