Skip to content

Instantly share code, notes, and snippets.

@desero
Last active May 30, 2018 16:16
Show Gist options
  • Select an option

  • Save desero/32023fc08f74c6f4dd0fcf9bb60691f2 to your computer and use it in GitHub Desktop.

Select an option

Save desero/32023fc08f74c6f4dd0fcf9bb60691f2 to your computer and use it in GitHub Desktop.
<!-- // Before -->
<script type='text/javascript'>
(function () {
var pl_beacon = document.createElement('script');
pl_beacon.type = 'text/javascript';
pl_beacon.async = true;
var host = 'https://www.presslabs.com';
if ('https:' == document.location.protocol) {
host = host.replace('http://', 'https://');
}
pl_beacon.src = host + '/vLkrhG7NjeZr.js?ts=' + Math.floor((Math.random() * 100000) + 1);
var first_script_tag = document.getElementsByTagName('script')[0];
first_script_tag.parentNode.insertBefore(pl_beacon, first_script_tag);
})();
</script>
<!-- // After -->
<!-- Start pl_beacon -->
<script>(function(d,s,h,i){var p=d.createElement(s);p.type='text/javascript';
p.async=true;h=('https:'==d.location.protocol)?h.replace('http://','https://'):h;
p.src=h+'/'+i+'.js?ts='+Math.floor((Math.random()*100000)+1);
var f=d.getElementsByTagName(s)[0];f.parentNode.insertBefore(p,f);
})(document,'script','https://www.presslabs.com','vLkrhG7NjeZr')</script>
<!-- End pl_beacon -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment