Re:Conditional JavaScript: Only download when it is appropriate
by madeofpalk on Friday December 18, 2020 @07:52AM
(#25466578)
Isn't DNT deprecated and just not supported in browsers any more?
Re:Conditional JavaScript: Only download when it is appropriate
by FrontAid on Friday December 18, 2020 @08:07AM
(#25466658)
> Isn't DNT deprecated [...]?
No https://www.w3.org/TR/tracking-dnt/ The problem with DNT is not its specification but that the largest chunk of the industry does not adhere to it. Instead they nag their users with annoying cookie overlays.
> Isn't DNT [...] just not supported in browsers any more?
It is supported by all common browsers except Safari: https://caniuse.com/do-not-track
We recently blogged about that on the example of Matomo (Google Analytics alternative). The main part is the following code:
Here is the link if you are interested in the details: https://frontaid.io/blog/matomo-dnt-do-not-track/