1$(window).on('load', function () { 2 // Google Tag Manager Data Layer 3 $('.infusion-submit .submit, .infusion-recaptcha').on('click', function () { 4 pushToDataLayer($(this)); 5 }); 6 7 function pushToDataLayer(elementClicked) { 8 var buttonClasses = elementClicked.attr('class'); 9 var buttonText = elementClicked.text(); 10 var formattedButtonText = buttonText.replace(/\r?\n|\r/g, "").replace(/\s{2,}/g, ""); 11 12 dataLayer.push({ 13 'event': 'gtm.linkClick', 14 'gtm.elementClasses': buttonClasses, 15 'gtm.elementText': formattedButtonText 16 }); 17 } 18});
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.