script for counting the no. of enters on the site | | |
Hello,
I need a script for counting the no. of enters on my site, please.
I need a check that for the same user in the same day - if the user enter
several times, it is count once
(or something like this - I need that the script will accurate as possible).
On the server side I have the .NET server.
Thanks :) | | | | re: script for counting the no. of enters on the site
"Mr. x" wrote on 15/11/2003:
[color=blue]
> Hello,
> I need a script for counting the no. of enters on my site, please.
>
> I need a check that for the same user in the same day - if the user[/color]
enter[color=blue]
> several times, it is count once
> (or something like this - I need that the script will accurate as[/color]
possible).[color=blue]
>
> On the server side I have the .NET server.[/color]
Do this server-side. You won't be able to store the results with
JavaScript.
Alternatively, just use a free web statistics service.
Mike
--
Michael Winter
M.Winter@[no-spam]blueyonder.co.uk (remove [no-spam] to reply) | | | | re: script for counting the no. of enters on the site
Mr. x wrote on 15 nov 2003 in comp.lang.javascript:[color=blue]
> I need a check that for the same user in the same day - if the user enter
> several times, it is count once[/color]
Even serverside, you cannot detect a user reliably, unless you can set a
cookie on his machine. Clientside, there is no way to store the count of
the other users.
[color=blue]
> On the server side I have the .NET server.[/color]
Better ask a dotnet group.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress) | | | | re: script for counting the no. of enters on the site
JRS: In article <Xns9434D094DACAAeejj99@194.109.133.29>, seen in
news:comp.lang.javascript, Evertjan. <exjxw.hannivoort@interxnl.net>
posted at Sat, 15 Nov 2003 19:30:10 :-[color=blue]
>Mr. x wrote on 15 nov 2003 in comp.lang.javascript:[color=green]
>> I need a check that for the same user in the same day - if the user enter
>> several times, it is count once[/color]
>
>Even serverside, you cannot detect a user reliably, unless you can set a
>cookie on his machine. Clientside, there is no way to store the count of
>the other users.[/color]
Not even then; think about "his". Our Public Library has more than a
score of machines, and I could use each in turn. If they accept
cookies, they are probably configured not to retain them between user
sessions.
Alternatively, after he has used "his" machine, his entire family might
also use it.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links. | | | | re: script for counting the no. of enters on the site
Dr John Stockton wrote on 16 nov 2003 in comp.lang.javascript:[color=blue]
> Not even then; think about "his". Our Public Library has more than a
> score of machines, and I could use each in turn. If they accept
> cookies, they are probably configured not to retain them between user
> sessions.[/color]
John, I would count that as different users.
[color=blue]
> .. his entire family might also use it.[/color]
... so we are back to the undefined entity "user".
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress) | | | | re: script for counting the no. of enters on the site
Mr. x wrote:
[color=blue]
> I need a script for counting the no. of enters on my site, please.[/color]
You do not need and you do not want this, not even server-side.
Counters are a Bad Thing (feed the words to Google for proof,)
use tools that evaluate server logs instead.
PointedEars | | | | re: script for counting the no. of enters on the site
JRS: In article <bpe3fr$1n96s3$2@ID-107532.news.uni-berlin.de>, seen in
news:comp.lang.javascript, Thomas 'PointedEars' Lahn
<PointedEars@web.de> posted at Tue, 18 Nov 2003 21:18:07 :-
[color=blue][color=green]
>> I need a script for counting the no. of enters on my site, please.[/color]
>
>You do not need and you do not want this, not even server-side.
>Counters are a Bad Thing (feed the words to Google for proof,)
>use tools that evaluate server logs instead.[/color]
Do not presume that server logs are available.
Page counters give usable information, provided that the numbers are
interpreted cautiously. For example, if I were to put counters on the
Date/Time and Javascript portions of my site, I could get a fair
estimate of their relative popularity - especially if the numbers were
very different.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links. | | | | re: script for counting the no. of enters on the site
Dr John Stockton wrote:
[color=blue]
> news:comp.lang.javascript, Thomas 'PointedEars' Lahn[color=green][color=darkred]
>>> I need a script for counting the no. of enters on my site, please.[/color]
>>You do not need and you do not want this, not even server-side.
>>Counters are a Bad Thing (feed the words to Google for proof,)
>>use tools that evaluate server logs instead.[/color]
>
> Do not presume that server logs are available.
>
> Page counters give usable information, provided that the numbers are
> interpreted cautiously. For example, if I were to put counters on the
> Date/Time and Javascript portions of my site, I could get a fair
> estimate of their relative popularity - especially if the numbers were
> very different.[/color]
In most cases either the logs are available directly or the service provider
provides tools to evaluate them (for example a web interface). Even if
nothing of that applies, and the cookie nagging of free counters aside, I
strongly recommend not to have a *visible* counter on the site at least.
Showing the numbers tells the visitor much about the author's character
because if the numbers are low in most cases the reason is obvious --
naive-dumb ways of authoring, ignoring the nature if the Web. I have never
seen a (semi-)professional putting a counter on their web site or even
heard/read recommending it. On the other hand, those numbers can be faked,
too. Do not expect a visitor to cry out "Hooray! That site -- so many
people have visited it, it must be good! I am not wasting my time here!!1".
PointedEars | | | | re: script for counting the no. of enters on the site
JRS: In article <bpj08u$1pmhf0$13@ID-107532.news.uni-berlin.de>, seen
in news:comp.lang.javascript, Thomas 'PointedEars' Lahn
<PointedEars@web.de> posted at Thu, 20 Nov 2003 17:23:58 :-[color=blue]
>Dr John Stockton wrote:
>[color=green]
>> news:comp.lang.javascript, Thomas 'PointedEars' Lahn[color=darkred]
>>>> I need a script for counting the no. of enters on my site, please.
>>>You do not need and you do not want this, not even server-side.
>>>Counters are a Bad Thing (feed the words to Google for proof,)
>>>use tools that evaluate server logs instead.[/color]
>>
>> Do not presume that server logs are available.
>>
>> Page counters give usable information, provided that the numbers are
>> interpreted cautiously. For example, if I were to put counters on the
>> Date/Time and Javascript portions of my site, I could get a fair
>> estimate of their relative popularity - especially if the numbers were
>> very different.[/color]
>
>In most cases either the logs are available directly or the service provider
>provides tools to evaluate them (for example a web interface). Even if
>nothing of that applies, and the cookie nagging of free counters aside, I
>strongly recommend not to have a *visible* counter on the site at least.
>Showing the numbers tells the visitor much about the author's character
>because if the numbers are low in most cases the reason is obvious --
>naive-dumb ways of authoring, ignoring the nature if the Web. I have never
>seen a (semi-)professional putting a counter on their web site or even
>heard/read recommending it. On the other hand, those numbers can be faked,
>too. Do not expect a visitor to cry out "Hooray! That site -- so many
>people have visited it, it must be good! I am not wasting my time here!!1".[/color]
You are again being pointless.
Such logging is not necessarily available. Your "most cases" is not the
same as "all cases".
Free counters do not necessarily require either cookies or nagging. For
example, my ISP supplies one (but supplies only minimal logging) with my
type of account. If you're clever enough to find where on my site the
counter is, you might even be able to read its value, but don't ask for
details since I read it by a means not available to you.
The OP wants to discover some form of count; you should not introduce
the idea of displaying the counter to the general public just in order
to denigrate said idea.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links. |  | Similar JavaScript / Ajax / DHTML bytes | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,439 network members.
|