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

Refactoring code and updating Feat Plausible #321

Closed
wants to merge 7 commits into from

Conversation

filiptaticek
Copy link
Collaborator

  • removing plausible logic from the ActionButton component
  • tracking plausible when the exercise is played from the dictionary
  • tracking plausible when the exercise is restarted

<ActionButton onClickAsync={restart}>{t('exercise_page.restart') || ''}</ActionButton>
<ActionButton
onClickAsync={() => {
plausible('Exercise-Started', { props: { language: lang, length: size } });
Copy link
Contributor

Choose a reason for hiding this comment

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

Tady posíláš celý objekt lang což je

lang: {
   currentLanguage: Language;
   otherLanguage: Language;
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ahaa, děkuji

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.

2 participants