made the analytics async