Archive for July, 2008

Timing is everything

Saturday, July 19th, 2008

Here for your delight.
A simple way to track timing in Javascript.
// TIMESTAMP Function
function timestamp(){return (new Date()).valueOf();}

// TIMER Function, wraps timing arround function call
function timer(f){
  var t1 = timestamp();
  for(var i = 0; i < 1000; i++){
    f();
  }
  var t2 = timestamp();
  return t2-t1;
}

// The function to test
var testFunc = function(){
  var v = [...]

Setting an Exclusion Cookie for Google Analytics with a Bookmarklet

Friday, July 18th, 2008

I have been doing a lot of work on my reading software website recently. This has played havoc with my Google Analytics reports.
So I set about looking for a way to block my own hits from the results. Having done a good search for up to date techniques, it seems that a cookie and a [...]

10 easy steps to add an exclusion filter in Google Analytics

Friday, July 18th, 2008

I have been doing a lot of work on my reading software website recently, this has played havoc with my Google Analytics reports.
I set about looking for a way to block my own hits from the results, having done a good search for up to date techniques, it seems that a cookie and a filter [...]

Byting the hand that feeds you…