Improve API analytics