I suppose it's possible to miss event tracking here if the _gaq event isn't up and running yet. What if you defined _gaq as an array if it wasn't already defined?

Though I'm not sure how event tracking before setting the tracker ID would work.