![]() |
| Home | Demo | Services | Features | Help | User Forum | Blog | About | |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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>
__________________
He Profits Most Who Serves Best “Remember that great missions are serious undertakings. Do not expect to perform great missions in a day.” |
|
#3
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
Quote:
__________________
He Profits Most Who Serves Best “Remember that great missions are serious undertakings. Do not expect to perform great missions in a day.” |
|
#7
|
|||
|
|||
|
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. ![]()
__________________
He Profits Most Who Serves Best “Remember that great missions are serious undertakings. Do not expect to perform great missions in a day.” |
|
#8
|
|||
|
|||
|
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
|
|||
|
|||
|
Nick,
Thank You!!!
__________________
He Profits Most Who Serves Best “Remember that great missions are serious undertakings. Do not expect to perform great missions in a day.” |
![]() |
| Tags |
| bug, plugin, wordpress, zero counter |
| Thread Tools | |
| Display Modes | |
|
|