Skip to content

Instantly share code, notes, and snippets.

@fer-ri
Created June 25, 2016 22:04
Show Gist options
  • Select an option

  • Save fer-ri/dadc811c07a956da0c0901b4140f2990 to your computer and use it in GitHub Desktop.

Select an option

Save fer-ri/dadc811c07a956da0c0901b4140f2990 to your computer and use it in GitHub Desktop.
Most Efficient Create Image Beacon / Web Bug / 1px Tracking With PHP
<?php
// based on http://stackoverflow.com/questions/4665960/most-efficient-way-to-display-a-1x1-gif-tracking-pixel-web-beacon
header('Content-Type: image/gif');
echo "\x47\x49\x46\x38\x37\x61\x1\x0\x1\x0\x80\x0\x0\xfc\x6a\x6c\x0\x0\x0\x2c\x0\x0\x0\x0\x1\x0\x1\x0\x0\x2\x2\x44\x1\x0\x3b";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment