For those we lost, We will not forget 09/11/2001 “We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness.--That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed, --That whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness.”
— The Continental Congress, July 4, 1776

“The task of statesmanship has always been the re-definition of these rights in terms of a changing and growing social order.”
— Franklin D. Roosevelt (Commonwealth Club Address, 1932)

“Roosevelt was wrong! The principles laid down in the Declaration of Independence are the principles of individual liberty. Our unalienable rights, given to us by God are given to us as individuals. Our rights do not come from society or the government, and they cannot be redefined by politicians. The nature of these rights carries with it the implication of individual responsibility, without which we surrender them.”
— Perri Nelson, November 6, 2008

 

Goodbye Google Analytics, StatCounter, and SiteMeter


Published Fri, Aug 1 2008 11:33 PM
Technorati Tags: Annoyances

I've temporarily removed the Google Analytics, StatCounter, and SiteMeter code from my site. I've always been suspicious of needlessly obfuscated code that inserts tags into page markup. I tried doing an analysis of the Google Analytics code once and didn't care for what I saw.

After watching Internet Explorer crash while using it to view my site from two different machines today while Firefox and Opera worked just fine I started wondering what was going on. Well, I found out. Some Javascript code that manipulates the document object model (DOM) causes Internet Explorer 6, 7, and 8 to go haywire if the document isn't fully loaded. I tried using the "defer" attribute on the scripts that cause the problem with no luck. The code used by these three lovely widgets exposes a bug in Internet Explorer's HTML parsing code. The bug is still present in Internet Explorer version 8, but they've done a better job of recovering with the new browser.

Error

About the only code that inserts elements into the DOM on my site now is the Dumb Ox Bloggregator. I've temporarily taken the rest of it down until I can figure out why it causes Internet Explorer to hurl. Any one of these three tools will cause the error you see above in Internet Explorer. What mystifies me is that the Bloggregator uses the same techniques as these other three tools to insert code into the site, and it still works.

This is one of the reasons I stopped using Internet Explorer as my primary browser some time ago. They insist upon saying that their browser is exhibiting the right behavior. I hardly call crashing proper behavior. I much prefer using Firefox for most things anyway. It's CSS compliance is far better than Internet Explorer's for one thing. It's also more stable.

I still keep Internet Explorer around though. Close to 70% of the visitors to my site use it, at least they do according to the statistics I was getting from SiteMeter until I had to remove their code to let Internet Explorer keep running properly. I also need it for some of the work I do in my straight job. At least I'll still get statistics from SiteMeter, but it's going to be a limited set for a while. Oh well.

SiteMeter is working on an upgrade to their service and it's going to handle the tracking code differently. Maybe it will work without injecting HTML into the document. I don't know about Statcounter, but I rarely use their statistics anymore anyway, so that's not going to be much of a loss. Still it's a shame to have to turn off some perfectly good utilities because Microsoft can't seem to fix bugs rather than explain them away.


[Update:David at third world county has something to say about this too. He's not quite as kind to Microsoft (I believe he calls the product Me$$ySoft Internet Exploder) as I am. Walls of the city blames the problem on SiteMeter. Even so, it's really Microsoft's bug!

Get a REAL browser. Use Firefox, Opera, or Safari!]


Comments (6) | Trackbacks (0)
View Perri Nelson's profile on LinkedIn I'm a proud friend of Israel! Are you? Republican National Committee