On every page I visit on Twitter (which uses Google Analytics) I see something like this: Twitter Tweet showing JS error See that long dashed line at the bottom of the page that looks like a very long JavaScript comment? Let's have a look at the source code: Source for Twitter JS error What is missing here is the JavaScript include reference to google-analytics.com/ga.js. It has been replaced with the long JavaScript comment. This is how it should look: Google Analytics JavaScript working on Twitter The long comment also causes a JavaScript error.
Here is one from Distilled's site (who also used Google telemarketing leads, bahrain telephone number data Analytics): JavaScript error in Internet Explorer This error is saying that the browser is not able to find an object called _gat and so it is not able to execute the _getTracker() method on it. In effect this means that my visit to this site is not being tracked. Interestingly enough, if you get the very latest Google Analytics JavaScript it includes a try { } catch (Exception e) {} block around the whole section that does the _getTracker() bit.
Ostrich Burying Head In The Sand So what is happening here? The _gat object is set up in the ga.js file that should have been loaded, but the line that loads this file has been commented out. Why has that line been commented out? Well, I don't know exactly, but I'm pretty sure it is some form of filtering going on by the firewall in the network at my work.
This will suppress the JavaScript warning but is a bit like burying your head in the sand
-
- Posts: 30
- Joined: Sat Dec 28, 2024 3:08 am