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