Merge pull request #275 from sharelatex/pr-separate-events-log-hints-feedback

Track positive and negative feedback as different events
This commit is contained in:
Paulo Jorge Reis 2016-07-08 10:54:02 +01:00 committed by GitHub
commit c5cf151add

View file

@ -36,8 +36,8 @@ define [
event_tracking.sendCountly "logs-hints-learn-more"
trackLogHintsFeedback = (isPositive, hintId) ->
event_tracking.send 'log-hints', (if isPositive then 'feedback-positive' else 'feedback-negative'), hintId
event_tracking.sendCountly "log-hints-feedback", { isPositive, hintId }
event_tracking.send "log-hints", (if isPositive then "feedback-positive" else "feedback-negative"), hintId
event_tracking.sendCountly (if isPositive then "log-hints-feedback-positive" else "log-hints-feedback-negative"), { hintId }
$scope.trackLogHintsPositiveFeedback = (hintId) -> trackLogHintsFeedback true, hintId
$scope.trackLogHintsNegativeFeedback = (hintId) -> trackLogHintsFeedback false, hintId