Showing posts with label browsers. Show all posts
Showing posts with label browsers. Show all posts

Friday, February 27, 2015

What My Users Are Using

Since I got a request to show some of Amphibian.com's user agent stats after Monday's post, I decided to put some information together and share it today. There are a few surprises.

These numbers are based on the agent strings for the last week. I had a pretty good week for traffic, due no doubt to my guest-authorship of Tavern Wenches on Monday.

First, let's look at the coarse-grain browser usage.
  • Firefox: 24.61%
  • Chrome: 29.78%
  • Internet Explorer: 15.38%
  • Safari: 1.97%
  • Other: 28.25%
What is "Other"?  Mostly just spiders and bots. There sure are a lot of them though. But over half of the traffic is people using Firefox or Chrome, which is great to see.

Now to break it down some more. What versions of the browsers are being used? I'll start with Firefox.
  • version 35: 36.64%
  • version 3: 30.31%
  • version 6: 15.99%
  • version 31: 7.66%
  • version 28: 2.41%
  • version 26: 1.08%
All other versions were less than 1% each of all Firefox traffic. It's no surprise that 35 is the most common, since up until 3 days ago it was the current version. What's really shocking is that version 3 is the next most common! It dates back to June of 2008. But it was also before the automatic upgrade process, which is why so many people are stuck on it. Leaks memory like mad though. Version 6 was also popular and came out before the forced updates, back in August of 2011. It didn't make the cutoff since it was less than one percent, but there was one comic accessed with Firefox 2. Whoever you are, please upgrade. The good news: Firefox has always had pretty good SVG support, so almost all of these people are seeing the frog comics more-or-less correctly. Even CSS3 Transforms, which I use relatively often, were supported the whole way back to 3.5.

Chrome is next.
  • version 40: 78.65%
  • version 39: 7.30%
  • version 38: 7.16%
  • version 36: 1.90%
  • version 35: 1.12%
  • version 30: 1.90%
All other Chrome versions were used less than 1% each. Thanks to Chrome's excellent automated update process, the vast majority of users are on the current version, released on 21 January 2015. There were 2 comics accessed from Chrome 41, which is currently in the beta channel. You are awesome, whoever you are. The oldest version of Chrome used was 10, released in March of 2011. Even that person got to see the frog comics almost perfectly. Chrome is my browser of choice and has always supported SVG graphics and CSS3 transforms.

Now how about those IE users?
  • version 6: 11.74% (fail!)
  • version 7: 1.66% (fail!)
  • version 8: 69.48% (fail!)
  • version 9: 1.66%
  • version 10: 9.53%
  • version 11: 5.94%
Booooo! That's right, IE 8 is still the most common IE used to visit Amphibian.com. Those folks are leaving disappointed. As are all those people using 7 and 6. Come on, people! IE 6?!?! Really? That browser's older than dirt! That browser nearly killed the web! Ugh. Anyway, the 17% of IE users who come with 9, 10, or 11 will be fine. The site looks presentable in 9 and should be perfect in 10 and 11. Internet Explorer's SVG support started in 9, but not all of the things I do with CSS3 are supported until 10. It degrades rather well though.

Safari doesn't show up enough to be significant, but almost everyone using it is on version 8.

The one other thing I like to look at is operating system. Since I went to the trouble of optimizing Amphibian.com for mobile devices, I'd like to see more mobile browsing of it. So far, though, I'm not doing so well in that area.
  • Windows: 58.98%
  • Mac: 4.48%
  • iOS: 3.25%
  • Android: 6.21%
  • Linux: 3.41%
  • Other: 23.67%
Again, "Other" shows up in a large number. It's the spiders and bots. Which is fine, I guess. One of the other design concerns with my site is how the frog's words are just P tags and can therefore be indexed by the search engines. But back to the real people - there are relatively few viewing the comics on mobile devices. Windows is by far the most popular. I am pleasantly surprised to see over 3% on Linux though.

Enough of the statistics now, back to the comics!

Amphibian.com comic for 27 February 2015

Monday, February 23, 2015

Talk to my Agent

Do you know which web browser you are using right now? I hope so.

Do you know which web browser the users of your site are using right now?  You should.

There are people who track global market share of different web browsers and provide that data to the public, so you can know that 58% of the world is using Internet Explorer, for example.

Maybe the most well known is Net Market Share.

But I'm talking about just your users. Are you tracking the browsers being used by the people who are visiting and using the application for which you are responsible? It is valuable data that can be used for both planning and debugging purposes.

For amphibian.com, I collect the User-Agent strings from the browsers that visit the site. The User-Agent is a bit of text that all browsers send to the servers with each request. It doesn't identify you personally, but it does tell the server the product name and version (like Chrome 40) and the layout engine name and version.

If you want to see what your browser says it is, just go to http://whatsmyuseragent.com/ and it will tell you.

What are some of these?
The problem is that these strings have gotten out of hand. They almost always start with "Mozilla." Both Chrome and Internet Explorer both do this, and they couldn't be more different. Firefox should theoretically be the only browser that could claim Mozilla heritage, but there are obviously no rules. Web developers have no right to complain though, since they caused it. When people started blocking access to web sites based on which browser was requesting the access (remember things like "This site only works in Netscape Navigator"), the browser manufacturers responded by putting "Mozilla" in every agent string.

Have a look at this site if you want to see a rather exhaustive list of possible agents: Zytrax.com Browser IDs.

Given the absurd amount of similarity and variety possible in User-Agent strings, it's best to find a tool to help you process them. Since Amphibian.com is a JavaScript-based Node application, I use UAParser.js, a very convenient parser module. It can be used both on the back-end, like I do, and in the browser if you need to parse the agent string client-side.

Usage is simple.

var parser = new UAParser();
var r = parser.setUA("some user-agent string").getResult();

console.log(r.browser.name);    // "Chrome", "Firefox", etc.
console.log(r.browser.version); // the complete version, like 40.0.2214.115
console.log(r.browser.major);   // just the version whole number, like 40
console.log(r.os.name);         // "Windows", "Linux", etc.
console.log(r.os.version);      // 95, ME, 7, 8, etc.
console.log(r.engine.name);     // "WebKit", "Gecko", etc.
console.log(r.engine.version);  // something like 537.36

After creating the UAParser object, get an object that represents the result of a parse by calling setUA and passing in a string. The result object contains a nicely organized breakdown of the agent. Easy!

Why don't you take your user agent over to my comic now and see what the frogs are up to today?

Amphibian.com comic for 23 February 2015

Wednesday, December 31, 2014

Drop that Internet Explorer!

What about the globe icon?
Should you drop support for Internet Explorer 8? Why not? My comic never supported it in the first place.

Well, maybe that's a little unfair. My comic doesn't support it because it has no support for SVG images, which are a major part of the comic's design. Also, CSS3 support is not there, which makes things look pretty bad. I just don't have time to develop a completely different site design for the roughly 9% of Internet users still on the antique browser. I doubt they are my target audience anyway (actually, only about 10% of my comic audience uses any version of IE).

Yeah, that's the one I remember
Internet Explorer 8 is the last version available on Windows XP, which is itself no longer supported. I liked XP and kept it around for a really long time myself, but Windows 7 and 8 are just fine operating systems and both support decent versions of IE.

But for further reading, look at these:

Is it Time to Drop Support for IE8?

The Internet Explorer 8 Countdown

Microsoft IE8 browser support ending in 17 months

Now there are even rumors that Microsoft will replace Internet Explorer with a totally new browser in Windows 10! While you might think that retiring the frustrating surfing tool is great news, just wait until you have to support TWO DIFFERENT weird non-standards-compliant Microsoft browsers instead of just one! It's not like every computer on earth is going to suddenly upgrade to Windows 10. There will be people hanging around on Windows 7 for years, and I doubt they'll get this new browser.

In case you are wondering, it's not until Internet Explorer 10 that 100% of my comic is supported. It does look fine in IE9 though. I just don't know what happened to Internet Explorer. I remember it being much better than Netscape Navigator 4, but it lost its way somewhere around version 5. Nobody stays on top forever. I wonder when someone will come out with a better browser than Chrome...

Amphibian.com comic for 31 December 2014