The key problem in any scheme meant to reliably track browser activity is that you cannot control the final collection of javascript running on a page.<p>You also can't control where that code will execute.<p>I had a clever, elaborate tracking scheme which came undone when I realised that a core step could be put inside a loop.