change javascript analytics to async tracking code