additional updates to analytics and api