How to properly check for Do Not Track with JavaScript

Every modern browser has a “Do Not Track” setting (DNT), which tells websites whether the user wants to be tracked or not. It’s been around since about 2011, but it’s been largely ignored until recently, because the definition of “tracking” has been hotly debated. The advent of GDPR has rekindled the idea of DNT, because … Read more