Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Google Translation on my website

Avatar

Avatar
Level 1
acp1
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
acp1
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
acp1
Level 1

18-09-2020

Am I able to track on my website how many times out of session total a user clicked on the google translate option? if so, how?

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 4
brentrad
Level 4

Likes

52 likes

Total Posts

81 posts

Correct Reply

16 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back
Boost 50
View profile

Avatar
Validate 1
Level 4
brentrad
Level 4

Likes

52 likes

Total Posts

81 posts

Correct Reply

16 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back
Boost 50
View profile
brentrad
Level 4

22-09-2020

You're going to have to head to Stack Overflow for this. You're going to have to sift through everything that happens in the console when an auto-translator is used, and this is going to vary between browsers. I recommend https://stackoverflow.com/questions/62998768/detecting-auto-translation-event-in-microsoft-edge as a jumping off point.

Avatar

Avatar
Publish 1
MVP
yuhuisg
MVP

Likes

180 likes

Total Posts

541 posts

Correct Reply

106 solutions
Top badges earned
Publish 1
Affirm 100
Springboard
Bedrock
Validate 1
View profile

Avatar
Publish 1
MVP
yuhuisg
MVP

Likes

180 likes

Total Posts

541 posts

Correct Reply

106 solutions
Top badges earned
Publish 1
Affirm 100
Springboard
Bedrock
Validate 1
View profile
yuhuisg
MVP

19-09-2020

If you're referring to the Google Translate widget, then I don't think it provides a callback function to indicate that it has finished translating your web page. The next best thing could be to detect changes in the widget's dropdown selection, and assume that the user has translated the page if the selected item is not the same as what it was before.

Note: Google does not support the Translate widget any more. https://support.google.com/translate/thread/4007370?hl=en