added async analytics tracking