Skip to content

Commit

Permalink
Added metrics flow to OAuth experiment button
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxcrawford committed Apr 1, 2020
1 parent feeb3cd commit 9e84c24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions public/js/fxa-analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function sendRecommendationPings(ctaSelector) {
});


document.querySelectorAll(".open-oauth").forEach( async(el) => {
document.querySelectorAll(".open-oauth, .add-metrics-flow-values").forEach( async(el) => {
const fxaUrl = new URL("/metrics-flow?", document.body.dataset.fxaAddress);

try {
Expand Down Expand Up @@ -204,5 +204,3 @@ function sendRecommendationPings(ctaSelector) {
});
}
})();


2 changes: 1 addition & 1 deletion views/partials/forms/scan-email-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{{#if featuredBreach}}
<input type="submit" value="{{ getString "find-out" }}"/>
{{else}}
<input {{#if isUserInExperiment}} {{> analytics/fxa id="fx-monitor-check-for-breaches-blue-btn" }} {{/if}} type="submit" value="{{ getString "check-for-breaches" }}"/>
<input {{#if isUserInExperiment}} class="add-metrics-flow-values" {{> analytics/fxa id="fx-monitor-check-for-breaches-blue-btn" }} {{/if}} type="submit" value="{{ getString "check-for-breaches" }}"/>
{{/if}}
{{> forms/loader }}
</div>
Expand Down

0 comments on commit 9e84c24

Please sign in to comment.