Adding a filter to deal with opt-out and privacy
Closed this issue · 1 comments
Description
Add a filter about here to filter $body
.
Context
It would be interesting to have a way to let the UpdateClient class to communicate with Update Manager passing extra information.
The idea (but this feature request extend it to other possible needs) is to deal with a plugin that allow site admin to opt-out for stats:
see xxsimoxx/stats-for-update-manager#15, ClassicPress/classic-commerce#166.
This way the developer can add a filter to pass extra arguments, like $body['sfum']='no-log'
, that can be handled by UM, SFUM or other companion plugins.
The Update Manager plugin doesn't collect data, so, it's the wrong place to add code to allow uses to opt out. This should be handled in the Stats extension as it introduced the functionality.
However, if a user wants to opt out of data collection, the developer would still have to log their URL in some way (and in plaintext) so, simply by opting out, they would be tracked. In other words, this isn't a viable request. It is an everyone or no one situation: either everyone is tracked (via hashed URLs) or no one is tracked (by not using the Stats extension.)
Also, because the images rely on receiving the domain name (in the request) the URL is required or local images can't be used. Alternatively, you could serve the images from your own domain, but, this would be the same issue, just a different side of it, since tracking can occur on where those images are served.