1. Home
  2. Google Language Switcher
  3. Technical Reference
  4. Analytics Tracking

Analytics Tracking

When Enable Google Analytics Event Tracking is active and a working gtag global function exists on the page, the module sends two events:

Event NameTrigger
open_translate_popupFired when the language switcher popup is opened by the visitor
translate_language_selectedFired 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_selected event 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.