Visits to this website are tracked using Google Analytics. Mostly because I like keeping an eye on where my visitors are from (their referring website or app, and country) and I want to know how many are reading each article i write. Today 70 % of the world’s top websites and 9 % of the entire web uses Google Analytics.
People — including myself — are not always comfortable with the all watching eye of Google looking over their shoulders all the time. Given the type of content I publish, I don’t believe anyone would really mind if Google knows about it. 76 % of total visitors (94 % of searchers) do actually come to the site via Google Search, so people can’t be too worried about Google knowing about their visit to this website. I’ve previously used the self-hosted Piwik platform, but it affected performance badly and frankly didn’t do a good job at neither tracking nor letting me analyze the recorded data in aggregate.
The Do Not Track signal is a standard HTTP header available in all web browsers. Enabling it means visitors don’t want to be tracked all over the web. Or something. It’s not really defined what it means nor what visitors expect the setting to do. At any rate, most websites completely disregard it and neither advertisers nor trackers seem to know what to do about it. Since Google Analytics is not doing anything based on the header on it’s own, I thought I’d at least modify how Google Analytics behaves. A normal Google Analytics cookie is stored on your device for two-years by default. You’ll find Google Analytics cookies in your browser set for sites you haven’t visited in 20 months!
I’ve also opted to always enable the “anonymizeIp” option in Google Analytics. I’ve no idea how this option is supposed to work, as the full IP address is always transmitted to Google as a part of fetching the script that then tell Google to only store your partial IP.
You also get tracking free URLs in the Atom syndication feeds if your feed reader requests the feeds with the DNT header set. Normally, a feed reader would get the feeds with URLs modified to include an extra bit of information saying link was opened from a feed reader. This extra information is stripped off the link when requested with a DNT-transmitting feed reader. As far as I’ve been able to figure out, no feed readers offer the DNT header as an option, nor does any other feed serving server vary their responses based on whether the DNT header is present.
Oh, and I track the usage of the DNT header itself through Google Analytics using the below code. Mostly because I find doing so just too damned ironic.