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.07k stars 324 forks source link

feat: track intercepted URL count (app usage) #1127

Open whizzzkid opened 1 year ago

whizzzkid commented 1 year ago

Blocked By: https://github.com/ipfs-shipyard/ignite-metrics/issues/103

Using https://github.com/ipfs-shipyard/ignite-metrics like in #1117 implement:

Additional Notes:

lidel commented 1 year ago

Dropping some other feature usage metrics that would be very valuable:

BigLep commented 1 year ago

Before we write code here, I want to make sure we have clearly defined the metrics we're going to collect and report. I'ld like to review this please when it's ready so save potential churn later.

SgtPooki commented 1 year ago
whizzzkid commented 1 year ago

MV3 does not allow this. this was possible in mv2, but mv3 does not want extensions to be touching the requests, just tell the browser what needs to happen and it will do that for you.

I have an issue open with chrome team asking for the stats api, but I don’t think that’s going to happen: https://bugs.chromium.org/p/chromium/issues/detail?id=1429170

In the meantime, we can probably append utm_* params to redirect url, which provides the source as the redirection rule id. Then cross check if the observed request is being redirected because of the rule the extension added. This may lead to reliable detection of redirected requests.