Analytical

When I was talking about Huffduffer, I mentioned that I don’t have any analytics set up for the site:

To be honest, I’m okay with that—one of the perks of having a personal project is that only metric that really matters is your own satisfaction.

For a while, I did have Google Analytics set up on The Session. But I started to feel a bit uncomfortable about willingly opening up a wormhole between my site and the Google mothership. It bothered me that Adblock Plus would show that one ad had been blocked on the site. There are no ads on the site, but the presence of the Google Analytics code was providing valuable information to Google—and its advertiser customer base—so I can understand why it gets flagged up like any other unwanted tracking.

Theoretically, users have a way of opting out of this kind of tracking by switching on the Do Not Track header (if it isn’t switched on by default). Looking at the default JavaScript code that Google provides for setting up Google Analytics, I don’t see any mention of navigator.doNotTrack.

Now, it may well be that Google sniffs for that header (and abandons any tracking) when its server is pinged via the analytics code, but there’s no way to tell from this side of the Googleplex. I certainly don’t see any mention of it in the JavaScript that gets inserted into our web pages.

I was wondering whether it makes sense to explictly check for the doNotTrack header before opening up that connection to google-analytics.com via a generated script element.

So if the current code looks like:

<script>
// generate a script element
// point it to google-analytics.com
</script>

Would it make sense to wrap it with some kind of test for navigator.doNotTrack:

<script>
if (!navigator.doNotTrack || navigator.doNotTrack != 'yes') {
// generate a script element
// point it to google-analytics.com
}
</script>

For the love of mercy, don’t actually use that code—it’s completely untested and probably causes more harm than good. But you can see the idea that I’m trying to get at, right? Google Analytics most definitely counts as tracking so it seems like the ideal use-case for Do Not Track.

It raises a few questions:

  1. Is anyone doing this already? It might well be that the answer is “no”, not because of any reluctance to respect user preferences but because the doNotTrack spec is very much in flux.
  2. Would you consider doing this?
  3. If you were to do this, could you foresee getting pushback from within your own company?

Responses

Kevin Beynon

Jeremy raises important points about privacy in Analytical. Whichever way you look at it, if you use Google Analytics, you’re sharing your visitor’s information with Google.

I completely agree with him and have avoided Google Analytics on my own site for a few years now. Instead, I use Piwik.

Piwik is an Open Source, self-hosted web analytics package that runs on your own server and does much the same job as Google’s product, but with one big difference: Piwik respects privacy.

It allows you to anonymise IP addresses, allow site visitors to set Opt-Out Cookies and, best of all, gives you the option of respecting the user’s Do Not Track setting.

On this site you’ll find privacy settings, along with supporting information, on the Privacy page. Try them out and see what you think. The next time you’re building a website, consider using Piwik - for your user’s sake.

Jen Simmons

@mor10 @adactio Oh right, Piwiki… So crappy. I’d be happy to pay for a good service. Pay a company that holds the data as private. Sacred.

# Posted by Jen Simmons on Monday, October 19th, 2015 at 2:22pm

2 Shares

# Shared by Jen Simmons on Monday, October 19th, 2015 at 1:57pm

# Shared by Rattling Can on Tuesday, October 20th, 2015 at 1:10pm

8 Likes

# Liked by Michal Csanaky on Friday, July 24th, 2015 at 10:48pm

# Liked by tehwill on Saturday, July 25th, 2015 at 1:05am

# Liked by Michael Rockwell on Saturday, July 25th, 2015 at 2:34am

# Liked by Riccardo Erra on Saturday, July 25th, 2015 at 10:41am

# Liked by Jen Simmons on Monday, October 19th, 2015 at 3:07pm

# Liked by Andrew Woods on Monday, October 19th, 2015 at 3:36pm

# Liked by Mitchell Wittenberg on Monday, October 19th, 2015 at 4:06pm

# Liked by Raoul Wegat on Monday, October 19th, 2015 at 5:39pm

Previously on this day

13 years ago I wrote Shanghai

My travel report.

14 years ago I wrote Spam of the Gods

Greetings, I write you as a humble spacefaring probe…

16 years ago I wrote Accessibility 2.0

The closing panel at the Accessibility 2.0 conference.

16 years ago I wrote Tools and Technologies to Watch and Avoid

A presentation by Ian Forrester at the Accessibility 2.0 conference.

16 years ago I wrote A case study: Building a social network for disabled users

A presentation by Stephen Eisden at the Accessibility 2.0 conference.

16 years ago I wrote User-generated Content

A presentation by Jonathan Hassell at the Accessibility 2.0 conference.

16 years ago I wrote Rich Media and Web applications for people with learning disabilities

A presentation by Antonia Hyde at the Accessibility 2.0 conference.

16 years ago I wrote Fencing in the Habitat

A presentation by Christian Heilmann at the Accessibility 2.0 conference.

16 years ago I wrote Making Twitter Tweet

A presentation by Steve Faulkner at the Accessibility 2.0 conference.

17 years ago I wrote Identity and authority

Trust is not an algorithm.

18 years ago I wrote Print stylesheets

Some advice for presenting your content on the printed page.

21 years ago I wrote On the beach

Oh, dear. Brighton doesn’t fare too well in one man’s mission to rate the beaches of the world:

21 years ago I wrote Design vs. syndication

This site has been getting mentioned in some good company lately.

21 years ago I wrote Design vs. legibility

The Designer is a very pretty looking site that publishes a PDF design magazine.