|
Posted by rf on 06/28/07 10:55
<joboils@hotmail.com> wrote in message
news:4h2783llmqp4qnumivvntrslmqhoq08036@4ax.com...
> On Thu, 28 Jun 2007 09:27:45 +0200, Ivαn Sαnchez Ortega
> <ivansanchez-alg@rroba-escomposlinux.-.punto.-.org> wrote:
>
>>joboils@hotmail.com wrote:
>>
>>> Why not write the data into the file as they click to leave each site
>>> - not as they click upon entering each site?
>>
>>Because there is not a clear and easy way to know when a "user leaves a
>>site".
>>
>>Logging page hits, on the other hand, is pretty trivial.
>
> A user leaves a site when they click on a link to do so(!).
Or if they hit the back button.
Or if they choose one of their favourites.
Or if they type in a new URL in the address bar.
Or if they right click and choose to open the link in a new tab/window.
Or if they simply wander off to the pub because the power has failed.
You can *never* tell when somebody leaves a site.
> If a link on site 1 points the visitor to site 2, the script opens a
> file, adds to the hit number in that file and closes the file again.
What script? Where? On the client? On the server? On the new page?
Surely not on the old page, that has long since gone.
And if the viewer chooses to [right-click > open in a new tab] on that link?
You will never know. Neither "site" will know. The web is stateless. You do
*not* know what has happened previously.
--
Richard.
Navigation:
[Reply to this message]
|