Skip to content

Commit 75c7fe3

Browse files
authored
Merge pull request #8441 from ethereum/quiz-metric-patch
Update Matomo tracking eventValue for QuizWidget
2 parents 94dfbce + aff04e0 commit 75c7fe3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/Quiz/QuizWidget.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ const QuizWidget: React.FC<IProps> = ({ quizKey, maxQuestions }) => {
171171
eventCategory: "Quiz widget",
172172
eventAction: "Question answered",
173173
eventName: `QID: ${questionId}`,
174-
eventValue: answer.isCorrect
175-
? `Correct answer`
176-
: `AID: ${answer.answerId}`,
174+
eventValue: answer.isCorrect ? "1" : "0",
177175
})
178176
setShowAnswer(true)
179177
}

0 commit comments

Comments
 (0)