Website to https not Counting all pages

Not open for further replies.
Since we moved our website to an https platform at, statcounter no longer counts all the pages despite the fact that all have the same statcounter code as far as we know.

We have just started adding the new code to some pages, but since it was random before, we're not sure that will matter.

Has anybody else had this problem? Is there something we're missing about a solution?

Thanks in advance.

Your tracking code appears to have no sc_security value.
You are also showing 2 versions of the tracking code on different pages.

For instance on the homepage you have this code:

<script type="text/javascript">
var sc_project=315136;
var sc_invisible=1;
var sc_security="";
<script type="text/javascript"
<noscript><div class="statcounter"><a title="Web Analytics
Made Easy - StatCounter" href=""
target="_blank"><img class="statcounter"
alt="Web Analytics
Made Easy - StatCounter"></a></div></noscript>​

On the about.html page you have this code:

<script type="text/javascript">
var sc_project=315136; var sc_partition=1; </script>
<script type="text/javascript" src="https:/"></script>

alt="web tracker" border="0"></a> </noscript>​

Notice the url of the img tag in the noscript portion is different. Not sure that still works.

The absence of an actual value for sc_security from both sets of code may mean the tracking code does not work.

The latest version of the Statcounter tracking code actually presents differently, with an additional variable and using a different counter script:

<script type="text/javascript">
var sc_project=315136;
var sc_invisible=1;
var sc_security="ssssssss";
var sc_https=1;
var scJsHost = (("https:" == document.location.protocol) ?
"https://secure." : "http://www.");
document.write("<sc"+"ript type='text/javascript' src='" +

<noscript><div class="statcounter"><a title="web analytics"
href="" class="statcounter" rel="nofollow"><img
src="//" alt="web
analytics" /></a></div></noscript>

I suggest you generate fresh tracking code and get a security code as well, then replace it everywhere on your website.

Thanks. We noticed yesterday that updating the code might be the problem, although it seemed to be counting sporadically. Now I wish there was a way to replace the code in all pages at once, but the current program we have won't do that large of search and replace. If anybody knows of one that would, that would be helpful.

Thanks again.
I'd have expected that with so many pages your website would be built on a template so common elements like Statcounter tracking code, Google Analytics and other similar common bits of code could be inserted ONCE into the template and thus apply to the entire site.
The thing is once a site has more than 5-6 pages it's not viable to not use a template.
Hmmm. We're not very experienced web designers, although we do design on our own. I'll have to investigate whether we can manipulate the template instead of add it to the code page by page. Yes, with 540 or so pages, that's a chore. You've given me something to do Monday.
Not sure if it will be as easy as I'd like. Seems as if the template does not have a header.php file, and is using just a variety of css files to control things. Still checking through if I can do this easier than page by page. I don't think adding the code to any of the css files will work. Thanks webado for all your help.
Unfortunately, I don't think there is a footer module either and, (although I'll have to check again) there doesn't seem to be the </body> tag in any of the template files outside the generic html pages. If that's the case, I'll just have to go one file at a time. That's not too bad, between my last post to you and now, I did 55 files in about 15 minutes. Not the best use of my time, but if it's necessary, it's necessary.
I agree. The only pure </body> tag I've seen so far is on the individual html pages, not the template css and there's no template php files. In the style.css file there's the following, which I don't think is the right place ...

Author: W3layout
Author URL:
License: Creative Commons Attribution 3.0 Unported
License URL:
h4, h5, h6,
h1, h2, h3 {margin-top: 0;}
ul, ol {margin: 0;}
p {margin: 0;}
html, body{
font-family: 'Lato', sans-serif;
font-size: 100%;
body a{
transition: 0.5s all;
-webkit-transition: 0.5s all;
-o-transition: 0.5s all;
-ms-transition: 0.5s all;
-moz-transition: 0.5s all;

And there's mention of body is other css files plus js files but I don't think they're appropriate to tracking code, more about style of the page. Oh well, back to coding individual pages, which is not too bad, but would have been quicker if I'd have been able to edit the template pages all at once.

Thanks again for your help.
Only files that contain html code can have a </body> tag. These files may be suffixed as .html or .php or .inc - it depends on how it's all implemented.
It's unfortunate that your template isn't actually built for deployment over many pages.
Next time you use a template take a bit of time to make it flexible.
Not open for further replies.