Expand my Community achievements bar.

Announcement: Calling all learners and mentors! Applications are now open for the Adobe Analytics 2024 Mentorship Program! Come learn from the best to prepare for an official certification in Adobe Analytics.
SOLVED

Can Analytics be added to an API to track API usage?

Avatar

Level 2

My company has several APIs to facilitate usage of our products. Can we use Analytics to track usage of these APIs somehow? I imagine that might just be firing custom javascript upon API usage? or is there a better way for a high-usage API that somebody has considered?

 

I googled this a few ways and all the results were just about the Analytics API itself, not about adding Analytics to an API.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I feel this would be a custom solution... 

 

I know there is a "Data Insertion" API (I've not used it)... but in theory, if you are using APIs through a tool (and not just making calls directly with the API), you could probably create a Data Insertion API call to track the usage in conjunction with the API being "used"??

 

This would take some planning, testing, making a POC, etc to see if you can get it working... 

 

The other thing you should check is IF the API usage shows up in the Admin Logs... I don't have a lot of APIs in use right now, so I can't really check my logs... but this type of usage may already be reported (not in the suite itself, and using your server calls bandwidth), but part of the Admin monitoring functions that you can see what people are using and when....

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

I feel this would be a custom solution... 

 

I know there is a "Data Insertion" API (I've not used it)... but in theory, if you are using APIs through a tool (and not just making calls directly with the API), you could probably create a Data Insertion API call to track the usage in conjunction with the API being "used"??

 

This would take some planning, testing, making a POC, etc to see if you can get it working... 

 

The other thing you should check is IF the API usage shows up in the Admin Logs... I don't have a lot of APIs in use right now, so I can't really check my logs... but this type of usage may already be reported (not in the suite itself, and using your server calls bandwidth), but part of the Admin monitoring functions that you can see what people are using and when....