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