1/** 2 * Shared SSO button click tracking functionality. 3 * This module initializes click listeners on SSO provider buttons 4 * and tracks the events via analytics. 5 */ 6function initSsoButtonTracking() { 7 const ssoProviderButtons = document.querySelectorAll('[id$="_sso_button"]'); 8 9 ssoProviderButtons.forEach(function(button) { 10 button.addEventListener('click', function() { 11 const event_name = button.dataset.eventName; 12 13 if (typeof analytics !== 'undefined' && analytics.track) { 14 analytics.track('site_event', { 15 event_name: 'sso_button_click', 16 type: event_name 17 }); 18 } 19 }); 20 }); 21} 22;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.