Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Matomo tracking eventValue for QuizWidget #8441

Merged
merged 1 commit into from
Nov 14, 2022
Merged

Conversation

wackerow
Copy link
Member

@wackerow wackerow commented Nov 1, 2022

Description

  • Send "1" for correct answer, "0" for incorrect

Related Issue

None filed, request per @konopkja

Send "1" for correct answer, "0" for incorrect
@gatsby-cloud
Copy link

gatsby-cloud bot commented Nov 1, 2022

✅ ethereum-org-website-dev deploy preview ready

eventValue: answer.isCorrect
? `Correct answer`
: `AID: ${answer.answerId}`,
eventValue: answer.isCorrect ? "1" : "0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does string vs. integer matter here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without looking at docs or other implementations we've done, my gut thinks these should be integers.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The eventValue type is currently set up to accept a string... We could try updating the interface to accept a number, we should just make sure this passes appropriately to Matomo.

This should still fix the issue on Matomo side of just being able to split these into two categories.

@konopkja
Copy link
Contributor

@wackerow @samajammin can we push this forward?

@corwintines corwintines merged commit 75c7fe3 into dev Nov 14, 2022
@corwintines corwintines deleted the quiz-metric-patch branch November 14, 2022 20:10
@corwintines corwintines mentioned this pull request Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants