Replaces document write, for all the dumb analytics snippets which can only be loaded synchronously.