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 415625 0b8f0217bda4c2368d7c02016b3d6389629ba7af
parent 415624 c6711b0df64123f07eae00340c9d5a1844358a34
child 415626 5de60fc0f2da8acd02bcff1b3ded47ea6d788d37
push id63233
push userbbirtles@mozilla.com
push dateWed, 25 Apr 2018 23:50:38 +0000
treeherderautoland@0b8f0217bda4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjryans
bugs1454298
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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.