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