Added analytics to api usage