Skip to content

Commit 5a343aa

Browse files
committed
added survey logging
1 parent e64ebce commit 5a343aa

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎v3/js/opt-frontend-common.js‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,6 +1661,15 @@ display a brief "Thanks!" note]
16611661
}
16621662

16631663
$.get('survey.py', myArgs, function(dat) {});
1664+
1665+
logEvent({type: 'survey',
1666+
appState: getAppState(),
1667+
surveyQuestion: myArgs.surveyQuestion,
1668+
surveyResponse: myArgs.surveyResponse,
1669+
surveyVersion: myArgs.surveyVersion,
1670+
testing_group: myArgs.testing_group,
1671+
what_learn_Q: myArgs.what_learn_Q,
1672+
});
16641673
});
16651674

16661675
// testingGroup == 'b'
@@ -1692,6 +1701,14 @@ display a brief "Thanks!" note]
16921701
$.doTimeout('iJustLearnedThanksFadeOut', 1200, function() {
16931702
$("#iJustLearnedThanks").fadeOut(1000);
16941703
});
1704+
1705+
logEvent({type: 'survey',
1706+
appState: getAppState(),
1707+
surveyQuestion: myArgs.surveyQuestion,
1708+
surveyResponse: myArgs.surveyResponse,
1709+
surveyVersion: myArgs.surveyVersion,
1710+
testing_group: myArgs.testing_group,
1711+
});
16951712
});
16961713
}
16971714

0 commit comments

Comments
 (0)