changed api to analytics