Skip to content

Commit

Permalink
Set "newScanPage" custom dimension.
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyjanenorton committed Nov 18, 2019
1 parent 30becb0 commit 8db014c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions public/js/fxa-analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ function getUTMNames() {
ga("create", "UA-77033033-16");
ga("set", "anonymizeIp", true);
ga("set", "transport", "beacon");
if (document.getElementById("new-scan-page")) {
ga("set", "dimension5", "newScanPage");
}
ga("send", "pageview", {
hitCallback: function() {
removeUtmsFromUrl();
Expand Down
2 changes: 1 addition & 1 deletion views/scan.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{else}}
<h2 class="headline scan-results-headline">{{{ fluentNestedBold "scan-results-known-breaches" breachCount=foundBreaches.length }}}</h2>
{{#if newScanPage}} <!-- New trial UI for testing call to actions -->
<button class="open-oauth blue-link temp-marketing-alert-me-link" {{> analytics/fxa id="fx-monitor-alert-me-blue-link" }} data-event-category="Alert me about new breaches">
<button id="new-scan-page" class="open-oauth blue-link temp-marketing-alert-me-link" {{> analytics/fxa id="fx-monitor-alert-me-blue-link" }} data-event-category="Alert me about new breaches">
{{ getString "alert-about-new-breaches" }}
</button>
{{else}}
Expand Down

0 comments on commit 8db014c

Please sign in to comment.