0xdevalias / chrome-NewWindowWithTabsToRight

Create a new window from the tabs to the right of the currently selected tab.
https://www.devalias.net/dev/chrome-extensions/new-window-with-tabs-to-right/
MIT License
6 stars 2 forks source link

Remove special "tabs" permission from manifest and reconsider the inclusion of Google Analytics #12

Open dalgard opened 2 years ago

dalgard commented 2 years ago

The "tabs" permission is no longer necessary, as long as you don't need the specific urls of tabs, among other things.

Please remove this permission from the manifest as soon as possible, so your extension can be installed completely without any worries about potential privacy violations in this or future versions. It's awesome that you link this extension directly to GitHub – I wish everyone would follow your example in this respect. With this tiny adjustment, noone in the future would need to spend time checking through your code, just to make sure that everything is above board – which, of course, it totally is 🙂


Additionally – as have been argued by plenty of people – there's simply no place for Google Analytics inside a browser extension. I understand that GA is standard for most web development, but when it comes to the private browser behavior that any single individual chooses to install on their local machine, any kind of uploaded data should be specifically declarered and accepted by the user before any cloud data collection 🙏

dalgard commented 2 years ago

Additionally – as have been argued by plenty of people – there's simply no place for Google Analytics inside a browser extension.

Concretely, the standard should be something like this: https://github.com/stefanXO/Tab-Manager-Plus/blob/master/PRIVACY.md

0xdevalias commented 1 year ago

Additionally – as have been argued by plenty of people – there's simply no place for Google Analytics inside a browser extension.

Partially related:

@dalgard I definitely see your point, and agree with your concerns. This was a quick chrome extension I hacked together for myself back in 2013, and it's only been very minimally updated since (last update was in 2018).

I can't remember my exact motivations, but I think I added Google Analytics so that I could see if/how often the extension was being used, and which features within the extension are being used; with the goal/theory to be understanding what parts are useful, and what parts aren't.

While I haven't exactly done much development/refinement on this extension making use of that, it's a feature I still value having. I'm not particularly wed to using Google Analytics for any reason other than that's what I was familiar with at the time. If there are alternative/better privacy preserving options these days, that would still allow me to track (anonymised) usage + which parts of the extension are used, I would definitely be open to hearing more about them.

I'm also open to adding this analytics as a configurable option, though right now it's more effort than I have time/energy to spend on this extension. There is currently no options page, so I would need to build that in first (see #5). At some point 'soonish' i'll need to update the extension for Manifest v3 (see #13), which I think might restrict/remove the ability for GA to work anyway; but at least at that point, I might have the focus/bandwidth to implement the options page/etc.

A few references for future me:

0xdevalias commented 1 week ago

RE: the inclusion of Google Analytics, there is also a need to update from the old 'Universal Analytics' to the new 'Google Analytics 4', which depending on the effort involved, may impact on my decision forward here:

See Also

0xdevalias commented 1 week ago

Some high level stats/reports from the old Google Analytics tag:

Sessions Per Week

image

Browser/OS

(obviously heavily biased since it's a Chrome Extension)

image

Top Countries

(Stopped showing them once we got to ~1k sessions per country)

image image image

Top Events

image


From that high level overview, it's interesting how many users/sessions are listed, vs the relatively small number of actual events tracked. That data will be somewhat skewed as I believe views of the Chrome Extension Store page are also tracked within that, so I would need to slice the data by source to get a more accurate number of 'actual users' vs 'events', but at least from that high level view of data, it seems to imply that (assuming all events logged correctly) the extension doesn't have a very high number of actual usages over the years, and that apparently newWindowWithCurrentAndTabsToRight is MUCH more popular than newWindowWithTabsToRight (which to be fair, is probably my more used option as well).

Not sure if I did this slice properly.. but basically filtered for users who landed on /_generated_background_page.html as a proxy for 'actual extension user' (rather than just a random extension store viewer/etc), which makes it look more like this:

New Users Per Day:

image

Users Per Day:

image

Sessions Per Day:

image