Skip to content

Instantly share code, notes, and snippets.

@j
Created August 10, 2011 22:14
Show Gist options
  • Save j/1138421 to your computer and use it in GitHub Desktop.
Save j/1138421 to your computer and use it in GitHub Desktop.
# Initial Script Call
<script type="text/javascript">
var cache_buster = Math.floor(Math.random()*9999999);
var zpix = document.createElement('script');
zpix.type = 'text/javascript';
zpix.async = true;
zpix.src = (document.location.protocol == 'https:' ? 'https://192.168.1.90/pixel/3.js' : 'http://192.168.1.90/pixel/3.js');
document.getElementsByTagName('body')[0].appendChild(zpix);
</script>
<noscript><iframe src="http://192.168.1.90/app_dev.php/pixel/3.php" width="1" height="1" style="display: none;"></iframe></noscript>
# What ^ Appends
<script type="text/javascript" async="" src="http://192.168.1.90/pixel/3.js"></script>
# What's inside ^
var pixels = "<iframe src=\"https:\/\/example-domain1.com\/pixel\/3135.php\" width=\"1\" height=\"1\" style=\"display: none;\"><\/iframe>\n<img src=\"https:\/\/example-domain3.com\/pixel\/offer-35511.gif\" width=\"1\" height=\"1\" \/>\n<iframe src=\"https:\/\/example-domain3.com\/pixel\/5511.html\" width=\"1\" height=\"1\" style=\"display: none;\"><\/iframe>";
document.write(pixels);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment