Skip to content

Commit

Permalink
removed the console.log in the mysterious tracking device.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Kreeftmeijer committed Aug 16, 2010
1 parent e82276c commit 09af34e
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions js/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,36 @@ function ping() {
}

function readcookie(k) {
var c=""+document.cookie;
var ind=c.indexOf(k);
if (ind==-1 || k==""){
return "";
}
var ind1=c.indexOf(';',ind);
if (ind1==-1){
ind1=c.length;
}
return unescape(c.substring(ind+k.length+1,ind1));
var c=""+document.cookie;
var ind=c.indexOf(k);
if (ind==-1 || k==""){
return "";
}
var ind1=c.indexOf(';',ind);
if (ind1==-1){
ind1=c.length;
}
return unescape(c.substring(ind+k.length+1,ind1));
}

function createcookie(k,v,days){
var exp='';
var expires = new Date();
expires.setDate(expires.getDate() + 100);
exp = expires.toGMTString();
var exp='';
var expires = new Date();
expires.setDate(expires.getDate() + 100);
exp = expires.toGMTString();

cookieval = k + '=' + v + '; ' + 'expires=' + exp + ';' + 'path=/'+';';
document.cookie = cookieval;
cookieval = k + '=' + v + '; ' + 'expires=' + exp + ';' + 'path=/'+';';
document.cookie = cookieval;
}

function randomstring() {
var chars = "0123456789abcdefghijklmnopqrstuvwxyz";
var s = '';
for (var i = 0; i < 32; i++) {
var rnum = Math.floor(Math.random() * chars.length);
s += chars.substring(rnum, rnum + 1);
}
return s;
var chars = "0123456789abcdefghijklmnopqrstuvwxyz";
var s = '';
for (var i = 0; i < 32; i++) {
var rnum = Math.floor(Math.random() * chars.length);
s += chars.substring(rnum, rnum + 1);
}
return s;
}

var _c=readcookie('tracker');
Expand All @@ -50,8 +50,6 @@ query = 'track?id=' + readcookie('tracker') +
'&userAgent=' + navigator.userAgent +
'&location=' + location.pathname

console.log([document.referrer.split('/')[2], location.hostname].join(','))

if(document.referrer.split('/')[2] != location.hostname) {
query += '&referrer=' + document.referrer
}
Expand Down

0 comments on commit 09af34e

Please sign in to comment.