Permalink
Browse files

Update GA tracking on FxOS devices page. Bug 974154.

  • Loading branch information...
1 parent 743c3c4 commit 922a67ea30a3623820d46aabf66a42d140566cb1 @jpetto jpetto committed Feb 25, 2014
Showing with 5 additions and 2 deletions.
  1. +5 −2 media/js/firefox/os/devices.js
View
7 media/js/firefox/os/devices.js
@@ -122,7 +122,7 @@ if (typeof Mozilla == 'undefined') {
COUNTRY_CODE = $locationSelect.val();
selectDevicesAndSetPartnerContent();
- gaTrack(['_trackEvent', '/os/devices/ Interactions', 'drop-down menu', COUNTRY_CODE]);
+ gaTrack(['_trackEvent', '/os/devices/ Interactions', 'drop-down menu', COUNTRY_CODE, 0, false]);
});
// wire up purchase button
@@ -200,7 +200,10 @@ if (typeof Mozilla == 'undefined') {
COUNTRY_CODE = "";
}
- selectDevicesAndSetPartnerContent();
+ if (COUNTRY_CODE !== '' && Mozilla.FxOs.Countries.hasOwnProperty(COUNTRY_CODE)) {
+ gaTrack(['_trackEvent', '/os/devices/ Interactions', 'drop-down menu', COUNTRY_CODE, 0, true]);
+ selectDevicesAndSetPartnerContent();
+ }
});
}

0 comments on commit 922a67e

Please sign in to comment.