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