1const convertStringToLowerCase = text => { 2 return typeof text === 'string' ? text?.toLowerCase() : ''; 3}; 4 5document.addEventListener('DOMContentLoaded', event => { 6 const buttons = document.getElementsByClassName('embed-button-sel'); 7 8 for (const element of buttons) { 9 const button = element; 10 11 button.addEventListener('click', function() { 12 window.dataLayer = window.dataLayer || []; 13 window.dataLayer.push({ 14 button_text: convertStringToLowerCase(button.textContent), 15 component: 'button cta', 16 event: 'select_content', 17 link_url: button.href 18 }); 19 }); 20 } 21});
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.