Skip to content

Commit

Permalink
Properly send all /metrics-flow data on Monitor promo "Sign Up" clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyjanenorton committed Mar 6, 2020
1 parent 05c55b9 commit 16e0349
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion public/js/resolve-breaches.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use strict";

/* global ga */
/* global doOauth */

(()=> {
function trapFocusInModal(modal, trapFocusInModal=true) {
Expand Down Expand Up @@ -86,9 +87,13 @@
}

productPromos.forEach(promo => {
promo.addEventListener("click", () => {
promo.addEventListener("click", (e) => {
const promoData = promo.dataset;
sendBreachDetailAnalyticsPing(promoData.eventCategory, "Engage", promoData.analyticsLabel);
if (promo.classList.contains("open-oauth")) {
e.preventDefault();
doOauth(promo);
}
});
});

Expand Down

0 comments on commit 16e0349

Please sign in to comment.