Skip to content

Commit

Permalink
Merge pull request #1741 from jpetto/bug-974154-foxos-devices-ga-trac…
Browse files Browse the repository at this point in the history
…king-fix

Fix GA tracking on features/specs tabs. Bug 974154.
  • Loading branch information
sgarrity committed Feb 28, 2014
2 parents 532bbe7 + c925f6b commit b0ce275
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions bedrock/firefox/templates/firefox/os/devices.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ <h2 class="section-heading">{{ _('Smartphones') }}</h2>
<h3 class="device-title">{{ _('Alcatel One Touch Fire') }}</h3>

<ul class="pager-tabs">
<li><a href="#p1">{{_('Features')}}</a></li>
<li><a href="#p2">{{_('Specifications')}}</a></li>
<li><a href="#p1" data-label="Features">{{_('Features')}}</a></li>
<li><a href="#p2" data-label="Specifications">{{_('Specifications')}}</a></li>
</ul>

<button class="device-detail-close">{{ _('Close') }}</button>
Expand Down Expand Up @@ -308,8 +308,8 @@ <h4 class="device-details-title">{{ _('Specifications') }}</h4>
<h3 class="device-title">{{ _('LG Fireweb') }}</h3>

<ul class="pager-tabs">
<li><a href="#p1">{{_('Features')}}</a></li>
<li><a href="#p2">{{_('Specifications')}}</a></li>
<li><a href="#p1" data-label="Features">{{_('Features')}}</a></li>
<li><a href="#p2" data-label="Specifications">{{_('Specifications')}}</a></li>
</ul>

<button class="device-detail-close">{{ _('Close') }}</button>
Expand Down Expand Up @@ -473,8 +473,8 @@ <h4 class="device-details-title">{{ _('Specifications') }}</h4>
<h3 class="device-title">{{ _('ZTE Open') }}</h3>

<ul class="pager-tabs">
<li><a href="#p1">{{_('Features')}}</a></li>
<li><a href="#p2">{{_('Specifications')}}</a></li>
<li><a href="#p1" data-label="Features">{{_('Features')}}</a></li>
<li><a href="#p2" data-label="Specifications">{{_('Specifications')}}</a></li>
</ul>

<button class="device-detail-close">{{ _('Close') }}</button>
Expand Down
2 changes: 1 addition & 1 deletion media/js/firefox/os/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,6 @@ if (typeof Mozilla == 'undefined') {

// track mozilla pager tab clicks
$('.pager-tabs').on('click', 'a', function(e) {
gaTrack(['_trackEvent', '/os/devices/ Interactions', selectedDevice + ' Interactions', $(this).text() + ' Tab']);
gaTrack(['_trackEvent', '/os/devices/ Interactions', selectedDevice + ' Interactions', $(this).data('label') + ' Tab']);
});
})(window.jQuery);

0 comments on commit b0ce275

Please sign in to comment.