make analytics async