1/* 2 3 ââââââââââ ââââââââââ âââââââââââââââ ââââ âââ ââââââ âââ âââââââââââââââ âââââââ 4ââââââââââââ âââââââââââââââââââââââââââââââââ ââââââââââââââ âââââââââââââââââââââââ 5âââ âââââââ ââââââââââââââ ââââââââââââââ ââââââââââââââ âââ âââ ââââââ 6âââ âââââ ââââââââââââââ âââââââââââââââââââââââââââââ âââ âââ ââââââ 7ââââââââ âââ âââââââââââââââââââ ââââââ âââââââââ ââââââââââââ âââ âââââââââââ 8 âââââââ âââ âââââââ âââââââââââ ââââââ ââââââââ âââ âââââââ âââ âââ âââââââ 9 10*/ 11 12try { 13 14// Global Variables -------------------------------------------------------------------- / 15 16var SEO = { 17 "bingWebmaster": "BC75BF528E6257EF418F0C9FD9EA6A4A", 18 "favicon": "172", 19 "googleAnalytics": [ 20 "G-C04V75BTPP" 21 ], 22 "googleDataStudioCode": "8d739a3f-b264-4e51-aa77-21dd20c86ba3", 23 "googleWebmaster": "CP7ytd35Pd--GdMXPc9hVRQKXC9PRZ4DXOvEHTxqGms", 24 "prefixTitleTagWithSiteTitle": "1", 25 "googleTagManager": [], 26 "facebookPixel": [] 27}; 28 29// Google Analytics -------------------------------------------------------------------- / 30 31window.dataLayer = window.dataLayer || []; 32if(typeof(window.gtag) != "function") { window.gtag = function() { dataLayer.push(arguments); } } 33gtag('js', new Date()); 34gtag('config', 'G-C04V75BTPP'); 35 36// Form Conversions -------------------------------------------------------------------- / 37 38window.report_form_block_conversion = function(block_id) { 39 40 if(typeof(block_id) == "undefined") { 41 console.error("report_form_block_conversion(): No block ID."); 42 return false; 43 } 44 45 try { 46 47 if(typeof(fbq) == "function") { 48 fbq('track', 'Lead'); 49 } 50 51 } catch(e) {} 52 53 var ga_events = {"19":"Contact"}; 54 55 if(typeof(ga_events[block_id]) != "undefined") { 56 57 if(typeof(gtag) == "function") { 58 59 var ga_event = 'Cybernautic Form Submit - ' + ga_events[block_id]; 60 61 gtag('event', ga_event); 62 63 } else { 64 console.warn("Conversion report blocked by browser."); 65 } 66 67 } else { 68 console.error("report_form_block_conversion(): No ga event for this block ID (" + block_id + ")."); 69 } 70 71 72 return false; 73 74} 75 76// Custom Analytics Trackers -------------------------------------------------------------------- / 77 78window.report_custom_analytics_trackers = function() { 79 80 try { 81 82 if(typeof(window.report_gtag_page_view) == "function") { 83 report_gtag_page_view(); 84 } 85 86 } catch(e) {} 87 88 try { 89 90 if(typeof(ga) == "function") { 91 92 ga('set', 'location', window.location.href); 93 ga('send', 'pageview'); 94 95 } 96 97 } catch(e) {} 98 99 try { 100 101 var _hsq = window._hsq = window._hsq || []; 102 _hsq.push(['trackPageView']); 103 104 } catch(e) {} 105 106 try { 107 108 if(typeof(fbq) == "function") { 109 110 fbq('track', 'PageView'); 111 112 } 113 114 } catch(e) {} 115 116} 117 118// Phone Links (Links Click Conversions) -------------------------------------------------------------------- / 119 120$("body").on("click", "a[href^='tel:']", function(e) { 121 122 var url = typeof($(this).attr("href")) != "undefined" ? $(this).attr("href") : false; 123 124 if(typeof(gtag) == "function") { 125 126 gtag('event', 'Cybernautic Phone Call - ' + url.replace('tel:', '')); 127 128 } else { 129 console.warn("Conversion report blocked by browser."); 130 } 131 132}); 133 134} catch(e) { console.error(e); }
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.