Skip to content

Commit

Permalink
Merge pull request #3982 from analytics-pros/bug-1248040-firefox-desk…
Browse files Browse the repository at this point in the history
…top-customize

[bug 1248040] Update GTM data attributes on /firefox/dekstop/customiz…
  • Loading branch information
alexgibson committed Mar 17, 2016
2 parents 1c99122 + a4f331a commit 7d144c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
8 changes: 4 additions & 4 deletions bedrock/firefox/templates/firefox/desktop/customize.html
Expand Up @@ -117,7 +117,7 @@ <h2>{{ _('More ways to customize') }}</h2>

<ul class="feature-list" id="customizer-list" role="tablist">
<li>
<a class="show-customizer selected" data-interaction="themes" data-element-action="Icon" id="customize-themes" href="#themes">
<a class="show-customizer selected" data-link-type="button" data-link-name="Themes" id="customize-themes" href="#themes">
<div class="stage">
<div class="circle-mask"></div>
<div id="brush"></div>
Expand All @@ -129,7 +129,7 @@ <h2>{{ _('More ways to customize') }}</h2>
</a>
</li>
<li>
<a class="show-customizer" data-interaction="add-ons" data-element-action="Icon" id="customize-addons" href="#add-ons">
<a class="show-customizer" data-link-type="button" data-link-name="Add-ons" id="customize-addons" href="#add-ons">
<div class="stage">
<div class="circle-mask"></div>
<div id="puzzle-pieces">
Expand All @@ -141,7 +141,7 @@ <h2>{{ _('More ways to customize') }}</h2>
</a>
</li>
<li class="last">
<a class="show-customizer" data-interaction="awesome-bar" data-element-action="Icon" id="customize-awesomebar" href="#awesome-bar">
<a class="show-customizer" data-link-type="button" data-link-name="Awesome Bar" id="customize-awesomebar" href="#awesome-bar">
<div class="stage">
<div class="circle-mask"></div>
<div id="awesomebar-on" class="awesomebar-icon"></div>
Expand Down Expand Up @@ -246,7 +246,7 @@ <h2>{{ _('Keep your Firefox in Sync') }}</h2>

{% include 'firefox/includes/sync-animation.html' %}

<a class="button" id="sync-button" data-interaction="button click" data-element-action="Sync CTA" href="http://www.mozilla.org/mobile/sync/"><span></span>{{ _('Learn more about Sync') }}</a>
<a class="button" id="sync-button" href="http://www.mozilla.org/mobile/sync/" data-link-type="button" data-link-name="Learn more about Sync"><span></span>{{ _('Learn more about Sync') }}</a>
<br>
<a class="more" rel="external" data-interaction="outbound link" href="https://support.mozilla.org/kb/how-do-i-set-up-firefox-sync">{{ _('Get help with Sync') }}</a>
</div>
Expand Down
9 changes: 0 additions & 9 deletions media/js/firefox/desktop/common.js
Expand Up @@ -19,15 +19,6 @@

// show download button in sticky nav on overview page
$('#sticky-download-desktop').fadeIn('fast');

// Track clicks on Nav CTA
$('#sticky-download-desktop .download-link').attr('data-interaction', 'download click - nav');

// Track Firefox download click in overview intro section
$('#firefox-desktop #intro .download-link').attr({'data-interaction': 'download click - primary', 'data-download-version': downloadVersion});

// Track Firefox download click in footer
$('#subscribe-download-wrapper .download-link').attr({'data-interaction': 'download click - bottom', 'data-download-version': downloadVersion});
}

// only show download buttons for users on desktop platforms, using either a non-Firefox browser
Expand Down

0 comments on commit 7d144c3

Please sign in to comment.