-
-
+
{# L10n: tag below adds visual style to "for" text #}
{{ _('Firefox for desktop') }}
{{ _('Trusted. Flexible. Fast.') }}
@@ -68,19 +68,19 @@{{ _('Firefox for desktop') }}
-
-
+
{# L10n: span below adds visual style to "for" text #}
{{ _('Firefox for Android') }}
{{ _('Make it uniquely yours.') }}
- + {{ high_res_img('firefox/android/btn-google-play.png', {'alt': 'Get it on Google Play', 'width': '129', 'height': '45', 'l10n': True}) }} -
-
+
{{ _('Firefox OS') }}
{{ _('Get just what you need.') }}
@@ -93,21 +93,21 @@{{ _('Firefox OS') }}
-
-
+
{{ _('Firefox Hello') }}
{{ _('Free, easy video conversations.') }}
-
-
+
{{ _('Sync') }}
{{ _('Connect Firefox wherever you use it.') }}
-
-
+
{{ _('Firefox Marketplace') }}
{{ _('Discover and download Web apps.') }}
diff --git a/media/js/firefox/family-index.js b/media/js/firefox/family-index.js index 9bbf40a0096..b335b6732ad 100644 --- a/media/js/firefox/family-index.js +++ b/media/js/firefox/family-index.js @@ -20,6 +20,7 @@ }); }); + // Check Firefox version if (isFirefox()) { // data-latest-firefox includes point release information var latestFirefoxVersionFull = $html.attr('data-latest-firefox'); @@ -34,4 +35,38 @@ } } + // Track product clicks + $('.product-list').on('click', 'a', function(e) { + var newTab = (this.target === '_blank' || e.metaKey || e.ctrlKey); + var href = this.href; + var product = this.data('product'); + var callback = function() { + window.location = href; + }; + + if (newTab) { + trackGenericLink('/firefox/products/ Interactions', product); + } else { + e.preventDefault(); + trackGenericLink('/firefox/products/ Interactions', product, callback); + } + }); + + // Track download bar clicks + $($downloadbar).on('click', 'a', function(e) { + var newTab = (this.target === '_blank' || e.metaKey || e.ctrlKey); + var href = this.href; + var product = this.data('product'); + var callback = function() { + window.location = href; + }; + + if (newTab) { + trackGenericLink('Firefox Downloads', product); + } else { + e.preventDefault(); + trackGenericLink('Firefox Downloads', product, callback); + } + }); + })(window.jQuery, window._gaq, window.site);
-
-
+