1jQuery(document).ready(function () { 2 jQuery('a[href^="tel:"]').click(function(){ 3 jQuery.ajax({ 4 method: 'POST', 5 url: ctct_app_obj.adminAjaxUrl + '?callback=?&action=' + ctct_app_obj.ajaxRecord, 6 data: { 7 'useragent': navigator.userAgent, 8 'url': window.location.href, 9 'number': jQuery(this).attr('href').replace('tel:', ''), 10 'blogId': ctct_app_obj.ajaxBlogId 11 }, 12 success: function(response) { 13 14 } 15 }); 16 17 // record to GA 18 CtctTriggerAnalytics(jQuery(this).attr('href').replace('tel:', '')); 19 }); 20 21 function CtctTriggerAnalytics(eventName) { 22 let virtual_url = ctct_app_obj.google.virtual_url + eventName; 23 24 try { 25 if ("gtag" in window) { 26 let tracker = ga.getAll()[0]; 27 if (tracker) { 28 tracker.send('pageview', virtual_url, 'Phone number clicked'); 29 } 30 } else { 31 ga('send', { 'hitType': 'pageview', 'page': virtual_url, 'title': 'Phone number clicked' }); 32 } 33 } catch(err) { 34 console.log('Google Analytics not set!'); 35 console.log(err.message); 36 } 37 } 38});
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.