//Loop Analytics - START (function(callback){var t,o,p;o=!1;t=document.createElement('script'); t.type='text/javascript';t.src="//www.loopanalytics.com/trackatron4.js";t.async=1; t.onload=t.onreadystatechange=function(){if(!o&&(!this.readyState||this.readyState =='complete')){o=!0;callback()}};p=document.getElementsByTagName('script')[0]; p.parentNode.insertBefore(t,p)})(function(){window.loop=new ts('706'); loop.pageview()}); //Loop Analytics - END jQuery("a[href^='mailto:']").click(function() { var mAddress = jQuery(this).attr('href').replace('mailto:', ''); if (window.ga) { ga('send', 'event', 'MailTo', 'click', mAddress); } if(window.loop) { loop.trackavent({category: 'MailTo', action: 'click', label: mAddress}); } }); jQuery(document).click( function(e) { if (e.target.tagName === 'A' && e.target.href.substr(0,4) === 'tel:') { var tAddress = e.target.href.replace('tel:', ''); if(window.ga) { ga('send', 'event', 'Click to Call', 'click', tAddress); } if(window.loop) { loop.trackavent({category: 'Click to Call', action: 'click', label: tAddress}); } } }); jQuery("a[href*='.doc'],a[href*='.docx'],a[href*='.dwg'],a[href*='.cad'],a[href*='.pdf'],a[href*='.xls'],a[href*='.xlsx'],a[href*='.ppt'],a[href*='.pptx'],a[href*='.zip'],a[href*='.txt'],a[href*='.vsd'],a[href*='.vxd'],a[href*='.js'],a[href*='.css'],a[href*='.rar'],a[href*='.exe'],a[href*='.wma'],a[href*='.mov'],a[href*='.avi'],a[href*='.wmv'],a[href*='.mp3']").click(function(e) { if (window.ga) { ga('send', 'event', 'Download', 'click', jQuery(this).attr('href')); } if(window.loop) { loop.trackavent({category: 'Download', action: 'click', label: jQuery(this).attr('href')}); } }); jQuery("a[href*='http']:not([href*='" + window.location.hostname + "'])").click(function(e) { var activeURL = window.location.href; if (jQuery(this).attr('rel') == 'print') { if(window.ga) { ga('send', 'event', 'Print', 'click', activeURL); } if(window.loop) { loop.trackavent({category: 'Print', action: 'click', label: activeURL}); } return; } var socialSites = new Array( //Array of Social Media Sites (Social Event) "linkedin.com", "www.linkedin.com", "twitter.com", "www.twitter.com", "facebook.com", "www.facebook.com", "www.google.com/bookmarks", "google.com/bookmarks", "youtube.com", "www.youtube.com", "plus.google.com", "www.pinterest.com", "pinterest.com", "www.instagram.com", "instagram.com", "googleplus.com", "www.googleplus.com" ); var excludedSites = new Array( "sampleimanigarydomain.com" //Array of Cross Domain Sites (Excluded from Outbound Event) ); var linkHost = this.hostname; if (jQuery.inArray(linkHost, excludedSites) == -1) { if (jQuery.inArray(linkHost, socialSites) >= 0) { if(window.ga) { ga('send', 'event', 'Social', 'click', jQuery(this).attr('href')); } if(window.loop) { loop.trackavent({category: 'Social', action: 'click', label: jQuery(this).attr('href')}); } } else { if(window.ga) { ga('send', 'event', 'Outbound', 'click', jQuery(this).attr('href')); } if(window.loop) { loop.trackavent({category: 'Outbound', action: 'click', label: jQuery(this).attr('href')}); } } } else { //alert("not tracked"); } }); //Call Tracking (function(d,s,ct){ vs_account_id = "CtjSZ1MHg8tm0QAE"; ct=document.createElement('script');ct.type='text/javascript'; ct.async=1;ct.src='https://rw1.calls.net/euinc/number-changer.js'; s=d.getElementsByTagName('script')[0];s.parentNode.insertBefore(ct,s); })(document);