StatCounter User Forum  
StatCounter Free web tracker and counter

Go Back   StatCounter User Forum > StatCounter.com > Bugs

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 09-09-2012, 07:48 PM
nickpelling nickpelling is offline
Junior Member
 
Join Date: Feb 2009
Posts: 20
Unhappy Stats all at zero for last two days?

According to Google Analytics, my site http://www.ciphermysteries.com/ had ~400 visitors over the last two days, but the StatCounter stats for the same period are precisely zero.

I use (and have used for a long time) the latest [1.6.3] version of the Official Statcounter WordPress plugin; it's properly configured & enabled; and the correct code is indeed being included in the final HTML; yet StatCounter's online site rechecker says that it's not there.

I also just now tried changing the plugin source to load counter/counter.js (as per the reinstallation instructions) rather than counter/counter_xhtml.js but this also didn't work, so I changed it back.

Is there some other problem I should be aware of?
  #2  
Old 09-10-2012, 07:42 PM
rotarysteve rotarysteve is offline
Master Member
 
Join Date: Aug 2005
Location: Ohio
Posts: 1,713
Default

looks like you have the sc code commented out, not sure if that is stopping it from working but take them out.

<script type="text/javascript">
<!--
var sc_project=4417788;
var sc_security="xxxxxxx";
var sc_invisible=1;
//-->
</script>
  #3  
Old 09-11-2012, 03:58 PM
nickpelling nickpelling is offline
Junior Member
 
Join Date: Feb 2009
Posts: 20
Default Done that, but still no joy...?

Steve: sensible suggestion! Unfortunately, even after removing the comment lines from the plugin source, clearing the webpage cache & checking the source, StatCounter still doesn't seem to be able to find it.

Can you please check it again, see if there's anything else obvious I might be missing? Thanks! I've used the official plugin unchanged for several years now, so it's a bit of a surprise that it's stopped working.

Incidentally, when I turn all the warnings on in FireBug, the current version of the counter/counter.js has an error in function sc_exitpage(e). Basically...

ad=document.getElementsByTagName("iframe");

...is missing "var" at the front, so should say...

var ad=document.getElementsByTagName("iframe");

I'm not sure if that's actually the underlying problem here, but it's certainly something trivial that StatCounter should fix.
  #4  
Old 09-12-2012, 01:06 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,176
Default

Quote:
Originally Posted by rotarysteve View Post
looks like you have the sc code commented out, not sure if that is stopping it from working but take them out.

<script type="text/javascript">
<!--
var sc_project=4417788;
var sc_security="xxxxxxx";
var sc_invisible=1;
//-->
</script>
No it's not commented out. Or rather it is but from the point of view of html. It's not commented out in javascript.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #5  
Old 09-12-2012, 01:32 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,176
Default

It may have something to do with the use of this:

<!-- Dynamic page generated in 1.060 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-09-12 01:07:07 -->
<!-- super cache -->
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #6  
Old 09-12-2012, 05:09 AM
rotarysteve rotarysteve is offline
Master Member
 
Join Date: Aug 2005
Location: Ohio
Posts: 1,713
Default

Quote:
Originally Posted by webado View Post
No it's not commented out. Or rather it is but from the point of view of html. It's not commented out in javascript.
Thank You Chris....
  #7  
Old 09-12-2012, 05:42 AM
rotarysteve rotarysteve is offline
Master Member
 
Join Date: Aug 2005
Location: Ohio
Posts: 1,713
Default

Ummm, pesky learning curve.....

In his case, the comment tags have no effect either way??

This link http://www.tizag.com/javascriptT/javascriptcomment.php would better describe comment tags for javascript,
but with comment tags for html disables all html.

  #8  
Old 09-12-2012, 10:05 AM
nickpelling nickpelling is offline
Junior Member
 
Join Date: Feb 2009
Posts: 20
Default Problem solved!

It turns out that one of the characters in the StatCounter security code setting had got corrupted on the WordPress database on the server... highly unexpected. Once I'd corrected that, the problem went away.

Thanks for all your comments and suggestions (particularly Steve)!
  #9  
Old 09-13-2012, 06:21 AM
rotarysteve rotarysteve is offline
Master Member
 
Join Date: Aug 2005
Location: Ohio
Posts: 1,713
Default

Nick,

Thank You!!!
Closed Thread

Tags
bug, plugin, wordpress, zero counter

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:18 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.