Bug 1454298 - Add utm_source and utm_medium parameters to DevTools menu links; r=jryans
authorBrian Birtles <birtles@gmail.com>
Wed, 25 Apr 2018 10:01:52 +0900
changeset 788234 0b8f0217bda4c2368d7c02016b3d6389629ba7af
parent 788233 c6711b0df64123f07eae00340c9d5a1844358a34
child 788235 f894dc2b4b87496371f351c5db2ba2d0228db62d
child 788283 5de60fc0f2da8acd02bcff1b3ded47ea6d788d37
push id107916
push userbmo:jaws@mozilla.com
push dateThu, 26 Apr 2018 00:14:29 +0000
reviewersjryans
bugs1454298
milestone61.0a1
Bug 1454298 - Add utm_source and utm_medium parameters to DevTools menu links; r=jryans MozReview-Commit-ID: BVn1DXBdaMY
devtools/client/framework/components/toolbox-toolbar.js
--- 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.