Bug 1560094 - add parameter to in-product donate links to measure their usage. r=sancus a=jorgk
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Thu, 18 Jul 2019 08:55:28 +0300
changeset 36106 dde505c5d853626bcbe81e65b85b0da7f67908de
parent 36105 15201c339dd09db23839d47533448f53c0d29f97
child 36107 46de833b93e7a4d8765895b5034ac39895640eaf
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewerssancus, jorgk
bugs1560094
Bug 1560094 - add parameter to in-product donate links to measure their usage. r=sancus a=jorgk
mail/base/content/aboutDialog.xul
mail/base/content/utilityOverlay.js
--- a/mail/base/content/aboutDialog.xul
+++ b/mail/base/content/aboutDialog.xul
@@ -125,17 +125,17 @@
             <description class="text-blurb" id="communityExperimentalDesc">
               &community.exp.start;<label is="text-link" href="http://www.mozilla.org/">&community.exp.mozillaLink;</label>&community.exp.middle;<label is="text-link" href="about:credits">&community.exp.creditsLink;</label>&community.exp.end;
             </description>
           </vbox>
           <description class="text-blurb" id="communityDesc">
             &community.start2;<label is="text-link" onclick="openURL('http://www.mozilla.org/');" oncommand="openUILink(this.getAttribute('href'), event);">&community.mozillaLink;</label>&community.middle2;<label is="text-link" onclick="openAboutTab('about:credits');">&community.creditsLink;</label>&community.end3;
           </description>
           <description class="text-blurb" id="contributeDesc">
-            &helpus.start;<label is="text-link" onclick="openUILink(this.getAttribute('href'), event)" href="https://donate.mozilla.org/thunderbird/about/">&helpus.donateLink;</label>&helpus.middle;<label is="text-link" onclick="openUILink(this.getAttribute('href'), event)" href="https://www.thunderbird.net/get-involved/">&helpus.getInvolvedLink;</label>&helpus.end;
+            &helpus.start;<label is="text-link" onclick="openUILink(this.getAttribute('href'), event)" href="https://donate.mozilla.org/thunderbird/?utm_source=thunderbird-client&amp;utm_medium=referral&amp;utm_content=about-dialog">&helpus.donateLink;</label>&helpus.middle;<label is="text-link" onclick="openUILink(this.getAttribute('href'), event)" href="https://www.thunderbird.net/get-involved/">&helpus.getInvolvedLink;</label>&helpus.end;
           </description>
         </vbox>
       </vbox>
     </hbox>
     <vbox id="bottomBox">
       <hbox pack="center">
         <label class="text-link bottom-link" onclick="openAboutTab('about:license');">&bottomLinks.license;</label>
         <label class="text-link bottom-link" onclick="openAboutTab('about:rights');">&bottomLinks.rights;</label>
--- a/mail/base/content/utilityOverlay.js
+++ b/mail/base/content/utilityOverlay.js
@@ -190,17 +190,17 @@ function openLinkText(event, url) {
   switch (url) {
     case "getInvolvedURL":
       openUILink("https://www.thunderbird.net/get-involved/", event);
       break;
     case "keyboardShortcutsURL":
       openUILink("https://support.mozilla.org/kb/keyboard-shortcuts/", event);
       break;
     case "donateURL":
-      openUILink("https://donate.mozilla.org/thunderbird/", event);
+      openUILink("https://donate.mozilla.org/thunderbird/?utm_source=thunderbird-client&utm_medium=referral&utm_content=help-menu", event);
       break;
     case "tourURL":
       openUILink("https://www.thunderbird.net/features/", event);
       break;
   }
 }
 
 function openWhatsNew() {