analytics added to api