humanmade / altis-analytics

Analytics module for Altis
https://www.altis-dxp.com/resources/docs/analytics/
GNU General Public License v3.0
9 stars 3 forks source link

Respect the DNT / GPC headers #113

Open johnbillion opened 3 years ago

johnbillion commented 3 years ago

I couldn't immediately see if the dnt HTTP request header is respected by Altis Analytics. If not, it would be great if it was.

roborourke commented 3 years ago

There was an issue for that upstream on the plugin repo https://github.com/humanmade/aws-analytics/issues/14

Ultimately the header isn't supported across the board so we opted for working on the Consent API approach instead. It could be done still but no other Analytics provider except maybe Fathom make use of it. That said it's a minor change in terms of code so could still be done in future.

johnbillion commented 3 years ago

The browser landscape might have changed a bit since that issue. On the client side, Chrome, Firefox, Brave, and Edge all expose DNT as a setting now. On the server side I've no idea how widely supported the header is, it's entirely down to each individual web application to respect it.

johnbillion commented 3 years ago

There's also a new GPC header which I hadn't heard about before. Some links: