Skip to content

Instantly share code, notes, and snippets.

@natebenes
Created February 1, 2011 19:51
Show Gist options
  • Save natebenes/806520 to your computer and use it in GitHub Desktop.
Save natebenes/806520 to your computer and use it in GitHub Desktop.
/* Functions.js */
Tracker =
{
req: {
},
track: function ()
{
var a = this.req;
delete a.trackingServer;
delete a.trackingServerSecure;
a.u = document.location.href;
a.bw = window.innerWidth;
a.bh = window.innerHeight;
if (document.referrer && document.referrer != "")
{
a.ref = document.referrer
}
$("body").append('<img src="/tracking.gif?' + jQuery.param(a) + '"/>')
}
};
/* end Functions.js */
/* begin embed */
$(document).ready(function() {
Tracker.req.object_id = 5281;
Tracker.req.object_type = 'blogPost';
Tracker.track();
});
/* end embed */
@natebenes
Copy link
Author

Maybe it would seem better if I named it "fluffyBunnies.gif"...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment