Move the async tracking code to the head