![]() |
| Home | Demo | Services | Features | Help | User Forum | Blog | About | |
|
#1
|
|||
|
|||
|
From what I've read it seems Statcounter doesn't work well with free Wordpress blog, since Wordpress doesn't allow javascript and Statcounter only works best in the javascript version.
I did install Statcounter in my free Wordpress blog and the counter does seem to work fine. The only problem is that on my site the counter doesn't really display correctly - meaning instead of only having the Statcounter button, there are also parts of the code displayed on top of the button as well. It would be weird if this'd mean in order to have Statcounter with my blog I'd have to put up with having the codes shown on my site. It's not a big enough reason for me to either give up Statcounter or Wordpress, but it is still quite an annoyance. Any help would be much appreciated. |
|
#2
|
||||
|
||||
|
Not under any circumstances the code needs to be displayed on the pages if it is pasted correctly to the source of the page. So there must be some kind of mangled code on your page. View the source code and take a look, and don't paste the counter code in HTML mode. But that is probably a doing by the Wordpress, to make the Javascript useless if they don't allowe it. Post the URL to your page so we can look at it, if you can't find the error by your self.
Last edited by Arne; 08-31-2007 at 07:29 PM. |
|
#3
|
|||
|
|||
|
That's what I think too so I guess I did something incorrectly...
Although I did paste the Statcounter code as given to the textbox in the Wordpress's text sidebar widget as instructed on Wordpress site. Here's the blog link: http://extravirgin.wordpress.com , the statcounter is in the sidebar. |
|
#4
|
||||
|
||||
|
Hello Frostblue
Until Arne or someone else gets a look at your page code, and me not being an expert in Wordpress, I am wondering if you have access to place the code in the footer? The footer is the best place to put the code. Richard |
|
#5
|
||||
|
||||
|
Quote:
Quote:
The second part of the code is missing the Javascript link to the .js file on Statcounters server. What you have left is what should be the <noscript> part of the code, used by Javascript disabled browsers. But since <noscript> tag is missing, the remaining code works as the "HTML only" version of Statcounter, logging pageloads but not all the detailed stats the full counter can give. I don't know much about Wordpress but my guess is, that Wordpress is removing anything that can make a Javascript work, leaving only the <noscript> parts and any other non scripting content. Delete what you have of the counter on the page, then go back to the counter wizard and choose the HTML only version of the counter and paste it to the page. As Car Guy says, the footer is the best place to put the code, not only on Wordpress pages. But it should work on the sidebar also, no need to move it unless you see any problems with it. |
|
#6
|
|||
|
|||
|
Hmm, you're right. The Statcounter-issued code is the same as the one in your quote. But when I copied and pasted it on Wordpress widget it's saved as the version without those red bold text. So Wordpress did tamper the code.
There doesn't seem to be an option to put the counter on the footer instead of sidebar too, as Wordpress seems to be very strict with its page template. I'm starting to like Wordpress less now... |
![]() |
| Thread Tools | |
| Display Modes | |
|
|