When Enable Google Analytics Event Tracking is active and a working gtag global function exists on the page, the module sends two events:
| Event Name | Trigger |
|---|---|
open_translate_popup | Fired when the language switcher popup is opened by the visitor |
translate_language_selected | Fired when the visitor selects a language from the Google Translate widget |
The module checks typeof window.gtag === 'function' before dispatching any event. If gtag is absent, no event is sent and no JavaScript error is thrown. Your existing analytics implementation is never disrupted.
💡 Use the
translate_language_selectedevent data in Google Analytics to identify which languages your visitors are switching to most. This is actionable data for prioritising which native language packs to build next.