How do you track if somebody leaves your site..?
Can somebody tell me how to track if someone "leaves" the Zopeserver..? I am going to use it for some login-feature.... Stoons, WebMaster @ 3D Festival http://www.3dfestival.com (Yes, that was made using Zope!)
Hi, Because of the way the Web works, there's no real way to determine when someone leaves your site. It's probably best to compare the server to a vending machine. Someone comes along, puts some money into the machine and pushes a button (initiates a transaction with the server), and walks away (closes the connection). The vending machine for the short period of time that the money goes down the slot and the button is pushed does some work and gives them a snack (some HTML or some other textual data), but it doesn't know or care whether the guy is hanging around afterwards. When the guy comes back to the vending machine, it likewise doesn't "remember" him. This conundrum is often solved by "sessioning" products, which take a stab at attempting to identify a particular user between requests for some period of time defined by "inactivity" (time between requests by the same user). There are several sessioning products for Zope: SQLSession, FSSession, HappySession, and CoreSessionTracking. You can find these on Zope.org. HTH, - C ----- Original Message ----- From: "StoonsDesign" <webmaster@stoonsdesign.dk> To: "ZopeQ" <zope@zope.org> Sent: Wednesday, February 28, 2001 7:41 PM Subject: [Zope] How do you track if somebody leaves your site..?
Can somebody tell me how to track if someone "leaves" the Zopeserver..?
I am going to use it for some login-feature....
Stoons, WebMaster @ 3D Festival http://www.3dfestival.com (Yes, that was made using Zope!)
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Interesting.... But arent there many of these stat sites that have the little icon in the bottom? I've seen average view times per page and such. Perhaps that little icon itself is what does it, since it activate cgi? Would it not also be possible to run an external method that captures a netstat command? An IP connection will establish channel and either be on a time-wait or closed and disappear. It would tax the server, but not create too much net congestion with these reloading gifs as Hannu pointed out... Is that possible? Paz Chris McDonough wrote:
Hi,
Because of the way the Web works, there's no real way to determine when someone leaves your site. It's probably best to compare the server to a vending machine. Someone comes along, puts some money into the machine and pushes a button (initiates a transaction with the server), and walks away (closes the connection). The vending machine for the short period of time that the money goes down the slot and the button is pushed does some work and gives them a snack (some HTML or some other textual data), but it doesn't know or care whether the guy is hanging around afterwards. When the guy comes back to the vending machine, it likewise doesn't "remember" him.
This conundrum is often solved by "sessioning" products, which take a stab at attempting to identify a particular user between requests for some period of time defined by "inactivity" (time between requests by the same user).
There are several sessioning products for Zope: SQLSession, FSSession, HappySession, and CoreSessionTracking. You can find these on Zope.org.
HTH,
- C
----- Original Message ----- From: "StoonsDesign" <webmaster@stoonsdesign.dk> To: "ZopeQ" <zope@zope.org> Sent: Wednesday, February 28, 2001 7:41 PM Subject: [Zope] How do you track if somebody leaves your site..?
Can somebody tell me how to track if someone "leaves" the Zopeserver..?
I am going to use it for some login-feature....
Stoons, WebMaster @ 3D Festival http://www.3dfestival.com (Yes, that was made using Zope!)
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Not sure what "stat site" or "little icon" means? Using TCP connection statistics might provide a rough indication of inactivity. But many times the information isn't useful because all of the TCP connections for a session may have been timed out, though we may want to consider the user "still connected". It's also unconfigurable, and using IP addresses as session keys fails when people visit your site from behind a NAT box or a proxy server. ----- Original Message ----- From: "Paul Zwarts" <paul.zwarts@oratrix.com> To: "Chris McDonough" <chrism@digicool.com> Cc: "StoonsDesign" <webmaster@stoonsdesign.dk>; "ZopeQ" <zope@zope.org> Sent: Thursday, March 01, 2001 10:39 AM Subject: Re: [Zope] How do you track if somebody leaves your site..?
Interesting....
But arent there many of these stat sites that have the little icon in the bottom? I've seen average view times per page and such. Perhaps that little icon itself is what does it, since it activate cgi?
Would it not also be possible to run an external method that captures a netstat command? An IP connection will establish channel and either be on a time-wait or closed and disappear. It would tax the server, but not create too much net congestion with these reloading gifs as Hannu pointed out...
Is that possible?
Paz
Chris McDonough wrote:
Hi,
Because of the way the Web works, there's no real way to determine when someone leaves your site. It's probably best to compare the server to a vending machine. Someone comes along, puts some money into the machine and pushes a button (initiates a transaction with the server), and walks away (closes the connection). The vending machine for the short period of time that the money goes down the slot and the button is pushed does some work and gives them a snack (some HTML or some other textual data), but it doesn't know or care whether the guy is hanging around afterwards. When the guy comes back to the vending machine, it likewise doesn't "remember" him.
This conundrum is often solved by "sessioning" products, which take a stab at attempting to identify a particular user between requests for some period of time defined by "inactivity" (time between requests by the same user).
There are several sessioning products for Zope: SQLSession, FSSession, HappySession, and CoreSessionTracking. You can find these on Zope.org.
HTH,
- C
----- Original Message ----- From: "StoonsDesign" <webmaster@stoonsdesign.dk> To: "ZopeQ" <zope@zope.org> Sent: Wednesday, February 28, 2001 7:41 PM Subject: [Zope] How do you track if somebody leaves your site..?
Can somebody tell me how to track if someone "leaves" the Zopeserver..?
I am going to use it for some login-feature....
Stoons, WebMaster @ 3D Festival http://www.3dfestival.com (Yes, that was made using Zope!)
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
StoonsDesign wrote:
Can somebody tell me how to track if someone "leaves" the Zopeserver..?
The only way to do it I know of is putting a small self-reloading gif in standard-html-header and track that. If it stops reloading itself you can assume that the user has closed your page. OTOH it seems quite irresponsible thing towards web to do asi it creates unneccessary traffic. It also could be nonworkable if user has turned of loading images or some proxy just decides not to forward the request. ------------------- Hannu
Can somebody tell me how to track if someone "leaves" the Zopeserver..?
I am going to use it for some login-feature....
Stoons, WebMaster @ 3D Festival http://www.3dfestival.com (Yes, that was made using Zope!)
This has probably not a lot to do with zope, but more with the way the web works. You can't tell the server when someone leaves your site because http is stateless. btw, very good info about this _and_ zope at : http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html#138867292 Depending on your needs : You could eventually open a javascript popup when the page is "unloaded". Porn sites are using this trick when you leave them. Not really the best looking solution. If you only need to have some idea of the time spent by your visitors on your site, this could be achieved by analyzing the logs. The same ip (let's say within an hour) is probably the same visitor... Why do you want to know when someone leave your site? Philippe
participants (5)
-
Chris McDonough -
Hannu Krosing -
Paul Zwarts -
Philippe J -
StoonsDesign