Skip to content

Commit

Permalink
adjust detractor/passive thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
groovecoder committed Feb 12, 2021
1 parent 47ee437 commit 5843f40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ function analyticsSurveyLogic() {
li.dataset.eventCategory = "NPS Survey";
li.dataset.eventAction = "submitted";
li.dataset.eventValue = option + 1;
if (option < 7) {
if (option < 6) {
li.dataset.eventLabel = "detractor";
li.dataset.npsValue = -1;
} else if (option < 9) {
} else if (option < 8) {
li.dataset.eventLabel = "passive";
li.dataset.npsValue = 0;
} else {
Expand Down

0 comments on commit 5843f40

Please sign in to comment.