Visitor to my website - Post ID 171596

User 2266314 Photo


Registered User
36 posts

Hi Guys.

I was checking my web statistics this morning, Im using Statcounter, when I came across this, 'see enclosed image' can anyone advise me on it, it does seem a bit unusual.







Attachments:
Technical and Information Pages
for the UK Rover 200 and MG-ZR

http://mgrover.coffeecup.com


User 2266314 Photo


Registered User
36 posts

Sorry, forgot to add its the 'file/users' one im enquiring about second insertion down.
Technical and Information Pages
for the UK Rover 200 and MG-ZR

http://mgrover.coffeecup.com


User 1948478 Photo


Senior Advisor
1,850 posts

The visitor probably saved your page on his/her C drive and then accessed it locally.
User 2266314 Photo


Registered User
36 posts

Thank you for your reply Per, much appreciated :)
Technical and Information Pages
for the UK Rover 200 and MG-ZR

http://mgrover.coffeecup.com


User 122279 Photo


Senior Advisor
14,649 posts
Online Now

It may be as Per says, but could it also be yourself opening the file containing the counter code on your own computer? I get the same if I open a file locally on my own system.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 1948478 Photo


Senior Advisor
1,850 posts

Yes, Kenny would certainly be treated as any other 'visitor' in that situation, unless he has specified a Statcounter 'Blocking Cookie' to exclude his own visit from the count. ;)
This reminds me of a related 'problem': It used to be (IE8 and older versions of the HTML Editor) that if I just remembered to have a SC Blocking Cookie specified in IE, my previews in the Editor would not trigger a Statcounter record. With IE9 and the latest Editor, though, this does not work. All my previews in the Editor now trigger Statcounter. The only way I've been able to avoid this has been to temporarily disable the Statcounter code while I do a lot of editing of a particular page. Anyone out there who knows of a better way?
User 2266314 Photo


Registered User
36 posts

Per wrote:
The visitor probably saved your page on his/her C drive and then accessed it locally.


Yes! this has solved my enquiry, thanks :)
Technical and Information Pages
for the UK Rover 200 and MG-ZR

http://mgrover.coffeecup.com


User 122279 Photo


Senior Advisor
14,649 posts
Online Now

Per wrote:
All my previews in the Editor now trigger Statcounter. The only way I've been able to avoid this has been to temporarily disable the Statcounter code while I do a lot of editing of a particular page. Anyone out there who knows of a better way?


What I do is using php includes. I put the counter code in the footer and create a 'footer.php' that is included with this bit of code:
<div id="footer"><?php

include("inc/footer.php");

?></div>

Of course the page which has the footer included also has to have the extension php.

When editing the page, I open it locally, and it will open without the included files. Php is a server language, so a page has to be uploaded for the footer (and any other included files, like header, navbar etc) to display. So, only when testing online the counter will count, but not locally.

And normal visitors to the site will not see if anything is included or not, all they see is the entire page. (When I say 'normal' visitors I don't mean those who are using the Ffx Web developer ad-on or similar.)
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 1948478 Photo


Senior Advisor
1,850 posts

A most clever and elegant solution! :cool:
Thank you very much Inger!
User 122279 Photo


Senior Advisor
14,649 posts
Online Now

Most welcome! :)
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.