Skip to content

Instantly share code, notes, and snippets.

View pwacher's full-sized avatar

Patrick pwacher

  • San Francisco, CA
View GitHub Profile
@pwacher
pwacher / quartile_pixels
Created January 2, 2014 22:04
A javascript function to fire off quartile tracking pixels when called.
<script>
function bt(btNum){
// generate a random number
var pndrnd=Math.floor(Math.random()*10000000000);
// Enter the list of pixels below. Remove any extra entries below.
var btPixel=new Array();
btPixel[0]="http://www.pxl.com/0/ord="+pndrnd+"?";
btPixel[25]="http://www.pxl.com/25/ord="+pndrnd+"?";
btPixel[50]="http://www.pxl.com/50/ord="+pndrnd+"?";