1const startSessionTime = performance.now(); 2 3jQuery(document).ready(function ($) { 4 function trackPhoneClick(phoneNumber) { 5 var timeToClick = Math.round(performance.now() / 1000); 6 var isMobile = /Android|iPhone|iPad|iPod/i.test(navigator.userAgent); 7 8 if (typeof gtag === "function") { 9 gtag('event', 'phone_click', { 10 'phone_number': phoneNumber, 11 'page_location': window.location.href, 12 'device_type': isMobile ? 'mobile' : 'desktop', 13 'time_to_click_sec': timeToClick 14 }); 15 } 16 17 $.post(pht_ajax.ajax_url, { 18 action: 'log_phone_click', 19 phone: phoneNumber, 20 page_url: window.location.href, 21 device_type: isMobile ? 'mobile' : 'desktop', 22 time_spent: timeToClick, 23 nonce: pht_ajax.nonce 24 }); 25 } 26 27 $('a[href^="tel:"]').on('click', function () { 28 var phone = $(this).attr('href').replace('tel:', ''); 29 trackPhoneClick(phone); 30 }); 31});
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.