Title: [Plugin: WordPress.com Stats] Javascript Errors
Last modified: August 19, 2016

---

# [Plugin: WordPress.com Stats] Javascript Errors

 *  [struppi](https://wordpress.org/support/users/struppi/)
 * (@struppi)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-javascript-errors/)
 * since I log the JS errors on my site, I found a lot generate by the wordpress
   stat Plugin. I got the error only with IE 7, it says (I have to translate it,
   because I got the message in german)
    no object in line xxx (it depends on the
   length of the site since the IE is not able to say the right line of an JS error).
 * So I did take a look at the JS Code which is included in my site from the plugin.
   but there’s no error.
 * MY guess is, the problem is that you send the JS Code in iso-8859-1 but my site
   is in utf-8, this is a problem for the IE sometimes.
 * Another small and not important prob is this:
    i.onLoad=function(){cmcVoid();}
 * JS is case sensitive, the handler is called onload.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [struppi](https://wordpress.org/support/users/struppi/)
 * (@struppi)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-javascript-errors/#post-917261)
 * Seems the Plugin has more JS Error.
 * I have a lot of JS errors in my JS Error log, it says:
    `st_go is not defined`
   on many different lines, but all are from Firefox. This is annoying, because 
   I use this log to see if my own scripts are fireing error, because I can’t test
   them in all Browsers on all System.
 * I am not sure what the reason is, but it seems the Plugin loads every week another
   JS Source.
    `<script src="http://stats.wordpress.com/e-<?php echo gmdate('YW');?
   >.js" type="text/javascript"></script>`
 * and sometimes for some reason it didn’t load this script, but then the function
   you call:
    `st_go({<?php echo stats_array($a); ?>});` isn’t available and you
   get the error.
 * well, since nobody reads or answers here, I guess it’s the best to deactivate
   the plugin.
 *  [Trollivier](https://wordpress.org/support/users/trollivier/)
 * (@trollivier)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-javascript-errors/#post-917270)
 * Hi! I happen to have some similar problem.
 * I get a JS error in IE7 saying “Line 48, Char 3, Invalid Argument”.
 * When I disable the WP Stats plugin, the error is gone.
    Looks like this comes
   from this code :
 * <script src=”[http://stats.wordpress.com/e-200902.js&#8221](http://stats.wordpress.com/e-200902.js&#8221);
   type=”text/javascript”></script>
 * and what follows… any idea?
 *  Thread Starter [struppi](https://wordpress.org/support/users/struppi/)
 * (@struppi)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-javascript-errors/#post-917282)
 * Well, I said it already, nobody care.
    They just have to change the scripts to
   utf-8 that’s all.
 *  [delusionn](https://wordpress.org/support/users/delusionn/)
 * (@delusionn)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-javascript-errors/#post-917290)
 * I’ve seen many references to this problem, but not a solution. I would rather
   use WP Stats than some external stats, but aside from someone saying that you
   have to use “function st_go” instead of just “st_go”, the problem remains unacknowledged.
 * I’m not a javascript programmer, so I’m not able to fix this myself. The fact
   that this reports as an error in FF leads me to believe the stats I’m getting
   are wrong, and that stats from FF users are probably not even being captured.
   Could someone please properly address this so I can have some confidence in the
   stats I’m seeing? This is a core feature of WP, after all.
 *  Thread Starter [struppi](https://wordpress.org/support/users/struppi/)
 * (@struppi)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-javascript-errors/#post-917291)
 * No, you misunderstood. Not you have to change something, the developers of wp-
   stat have to change their script.
 * you can use this plugin only if you are using an iso-xxxx charset.

Viewing 5 replies - 1 through 5 (of 5 total)

 The topic ‘[Plugin: WordPress.com Stats] Javascript Errors’ is closed to new replies.

 * 5 replies
 * 3 participants
 * Last reply from: [struppi](https://wordpress.org/support/users/struppi/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-javascript-errors/#post-917291)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
