ipfs / ipfs-companion

Browser extension that simplifies access to IPFS resources on the web
https://docs.ipfs.tech/install/ipfs-companion/
Creative Commons Zero v1.0 Universal
2.05k stars 325 forks source link

Implement metrics collection. #1227

Closed whizzzkid closed 1 year ago

whizzzkid commented 1 year ago

Metrics cannot be collected from the service worker, it happens in the window context only for now.

### Tasks
- [x] Implement minimal API to send metrics to countly using fetch in serviceWorker context.
- [x] Collect URLs intercepted and served using the routes.
- [x] refactor frontend pages to utilize this common channel to push metrics.
- [x] Revert https://github.com/ipfs/ipfs-companion/pull/1172
whizzzkid commented 1 year ago

Completed in #1242