ageddesi / Mocked-API

An API library of useful mocked endpoints to help you get your designs feeling lifelike with real data.
MIT License
65 stars 87 forks source link

Add API analytics #13

Open ageddesi opened 2 years ago

vishva-mahadevan commented 2 years ago

Hello, @ageddesi Could you please elaborate more? 😃

ageddesi commented 2 years ago

I need to look into a way to hook api metrics into different 3rd parties. For example google analytics. Plausible, fathom etc. So that we can measure usage of each end point

computamike commented 2 years ago

I think I might take a look at this if that's ok? I think I can add Plausable into the docker-compose, get that working and develop an interface for the analytics.

computamike commented 2 years ago

I have a local instance of plausible running - however it won't work for localhost - I can set up a host hack, but this is worth noting for developers looking to hack on this.

image

computamike commented 2 years ago

I have something running locally - here's a screenshot. Still lots to do - around removing hardcoded magic strings. image image