<script src="//g.adspeed.net/ad.php?do=detectadblocker" type="text/javascript"></script>
<script type="text/javascript">
  window.addEventListener('load', function () {
    if (document.getElementById('My-AdServer')) {
      // alert('Good! Ads NOT Blocked');
 
      // Records in Google Analytics (choose one method: ga or gtag)
      // ga('send','event','Ads Blocked?','No',{'nonInteraction':true});
      // gtag('event','Ads Blocked?',{'event_label':'No','event_category':'Advertising','non_interaction':true});
 
    } else { 
      // Records in Google Analytics (choose one method: ga or gtag)
      // ga('send','event','Ads Blocked?','Yes',{'nonInteraction':true});
      // gtag('event','Ads Blocked?',{'event_label':'Yes','event_category':'Advertising','non_interaction':true});
 
      // do something since this viewer is not seeing ads on your site
      // eg: if you want to redirect to your advertising/ad-supported notice page
       window.location = "/detected.php";
    }
  });
</script>
