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

Enhance user action logging #3273

Merged
merged 2 commits into from
Jul 4, 2024
Merged

Conversation

ayanaar
Copy link
Collaborator

@ayanaar ayanaar commented Jul 3, 2024

Fix #3269

Updated user action logging by adding locale name and locale code when an LLM translation is copied. Additionally, updated the logging for dropdown selections to record the locale code instead of the locale name for the selected option.

@ayanaar ayanaar requested a review from mathjazz July 3, 2024 20:02
@@ -52,6 +53,8 @@ export function MachineryTranslationComponent({
if (llmTranslation) {
logUXAction('LLM Translation Copied', 'LLM Feature Adoption', {
action: 'Copy LLM Translation',
localeCode: locale.code,
targetLanguage: locale.name,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wouldn't include targetLanguage, because localeCode is already unambiguous. It's also better to keep both related UX actions that are logged consistent in that regard.

Copy link
Collaborator

@mathjazz mathjazz left a comment

Choose a reason for hiding this comment

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

LGTM.

@flodolo Do you have any additional requests for logging UX actions?

@flodolo
Copy link
Collaborator

flodolo commented Jul 4, 2024

@flodolo Do you have any additional requests for logging UX actions?

No, that's enough for now.

@mathjazz mathjazz merged commit f1e958d into mozilla:main Jul 4, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants