Bug 1454298 - Add utm_source and utm_medium parameters to DevTools menu links; r?jryans draft
authorBrian Birtles <birtles@gmail.com>
Wed, 25 Apr 2018 10:01:52 +0900
changeset 787600 25df0e823f321f3ccb4fdcfab86698bb5e1e28e9
parent 787539 6eeb97ca94f40189d5aa552da9e0b0b11bfa0441
push id107757
push userbmo:bbirtles@mozilla.com
push dateWed, 25 Apr 2018 01:02:36 +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
@@ -393,26 +393,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.