Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

User route tracing
I use sessions on my site. Anyone looking at a page is instantly given a session ID and this is passed from page to page.Sessions are timed-out after 300 seconds. Now by storing this in the logs as well you suddenly have the route every user took when looking at the site. So my logging table now looks like this :
create table logging
	(
	timestamp BIGINT,
	remote_ip char(15),
	page text,
	refering_page text,
	session_id char(20)
	);
By adding this one bit of data we suddenly have a whole new way of looking at the data. Before we use this data we need to understand better how it is stored.
  1. A user enters the site.
  2. They are given a session ID
  3. The logging table is updated ( with timestamp, remote_ip,page,refering_page and session ID)
  4. The user clicks a link
  5. A different page is displayed.
  6. Back to step 3
Now what I do is this, but I'm not saying it is the best way :
Select a timestamp start and end ( eg beggining of the day and end of the day) Select the page you want to see how users got to. We will call this "pagex" Select all session IDs from the logging table where page=pagex and timestamp>timestamp_start and timestamp<timestamp_end. We now have a list of session IDs of people that looked at pagex. Then for each session ID - we want to get the pages that they looked at where the timestamp is before that of them looking at pagex. Order this information by the timestamp and that is the users route.
This unfortunatly does give us their whole route around the site before getting to pagex. I overcome this by grouping the pages that they have looked at and ordering by the most popular in a kind of backstepping way.eg look at one page back, two pages back, three pages back etc
There are many more ways of looking at this data - I'm not sure what they all are! - but I know that they are there. By looking at this data it becomes apparent that some links you have put in place are never used. Or certain pages are accessed from other sites more than they are from your own site. One good use is to see how spiders/bots navigate your site. If used correctly you will have a better understanding of how users navigate your site, where the obvious links are and where there should be links.
Happy user following.

[Page 1]  [Page 2]  


Comments:
RE: this is how to check your ip addressekritt_wana08/28/05 23:59
RE: How to trace an IP address?Maryus John Little08/18/05 05:04
RE: How to trace an IP address?arvind singh05/14/05 12:14
RE: Hack IPsateesh05/08/05 05:45
RE: How to trace an IP address?mayuran05/06/05 06:41
possible to change ip addressjoe03/14/05 19:14
How to access a blocked ip ?jagadeesh03/01/05 04:22
how to fake IP cathy02/24/05 04:27
how to fake my ipJorge02/24/05 04:02
RE: I need HELP!!Pat12/06/04 17:12
RE: How to trace an IP address?rrrrr12/04/04 20:40
RE: ip addressZippo11/21/04 17:59
RE: How to trace an IP address?WMaynez11/21/04 15:35
I know how to track IP Address'sAnj Dawg11/09/04 04:49
route mappingAkhtar06/04/04 17:22
RE: this is how to check your ip addressearul01/10/03 20:06
RE: this is how to check your ip addressewolf01/10/03 19:58
this is how to check your ip addresseblanga12/10/02 20:52
RE: Can any one please help me.Amarjit Singh11/30/02 16:56
RE: Hack IPsam11/08/02 12:31
RE: ip addressA_G11/06/02 13:26
How to trace an IP address?Nase11/05/02 12:44
RE: Hack IPArchon11/04/02 16:07
RE: How to trace an IP address?prashanth11/02/02 01:55
RE: pls do tell meprashanth11/02/02 01:50
Can any one please help me.Liq69ers10/28/02 14:39
How to trace an IP address?Tiger10/24/02 12:22
Finding IP addresses-tracingVidaLoco10/17/02 13:58
RE: MySQL; many hits and loggingAJAMMA PIUS M10/16/02 02:32
IP addressron10/06/02 20:21
RE: how to block tracesKorean kid10/06/02 17:39
how to block tracesKat09/22/02 02:15
ip addresswishiwas_neverloved09/13/02 15:39
other IP address read in e-mailPol09/05/02 12:15
routeEddy08/25/02 10:25
RE: Hack IPimran08/23/02 20:11
pls do tell memotherindia08/21/02 00:53
RE: how to trace e-mailJoel08/15/02 10:38
RE: Can any one tell how to find IP ADDRESS Joel08/15/02 10:35
linking urls to IP addressesIndigo08/05/02 14:14
I need HELP!!Lizzie98707/31/02 22:49
RE: tracing an IP addressninja07/23/02 21:05
RE: how can I find out MY ip address?Vlad G.07/18/02 14:42
RE: What's the best way to get a direct connectinVlad G.07/18/02 14:40
getting the ip frpm emailAnirban Samanta07/10/02 15:28
Hack IPMoly07/03/02 01:30
How can I find an IP number for a site?Mix06/24/02 00:35
sonora, mexicofernando06/20/02 21:12
RE: Can any one tell how to find IP ADDRESS rich06/15/02 07:44
RE: tracing an IP addressunknown06/04/02 11:12
tracing an IP addressTiff06/03/02 14:27
RE: how to trace e-mailcap06/01/02 15:42
RE: Can any one tell how to find IP ADDRESS cap06/01/02 15:39
Getting the referring url in php...heres the Derek Hinch04/28/02 02:32
RE: Can any one tell how to find IP ADDRESS fartash04/24/02 10:38
How to find your IP addressDeeJay Bettes04/23/02 19:10
how to trace e-mailshyguy04/09/02 17:14
RE: how can I find out MY ip address?Alex Brett04/05/02 15:35
RE: What's the SQL for the session method?Frank04/02/02 17:36
RE: Can any one tell how to find IP ADDRESS Derek Hinch03/26/02 13:22
how to know the page requested?Ann03/17/02 22:39
What's the best way to get a direct connectinInline00sk8er01@aol.com03/12/02 19:57
how can I find out MY ip address?JesseHagberg02/28/02 18:54
RE: Can any one tell how to find IP ADDRESS MOEZ01/18/02 13:01
RE: Can any one tell how to find IP ADDRESS Nicole01/16/02 12:25
RE: Can any one tell how to find IP ADDRESS N3t-Tr1ppa01/09/02 13:16
RE: Can any one tell how to find IP ADDRESS jigu12/21/01 13:35
RE: Can any one tell how to find IP ADDRESS Jessica 12/10/01 21:43
print out optionsivapriya11/12/01 21:04
cristal reportloredana langellotti10/30/01 02:26
Can any one tell how to find IP ADDRESS Jammer Boy10/02/01 18:10
RE: Use wusage! - here it isJohn09/20/01 10:20
MySQL; many hits and loggingAdam Cuipka09/18/01 22:54
RE: gah. been there done that, here's the code.Tobias Beuving08/11/01 21:44
Getting an IP address displayed on screenBrian07/14/01 19:24
RE: How do I get the refering URL?Steven Parks07/03/01 07:48
Use wusage!Adam Knowles06/22/01 09:25
RE: How do I get the refering URL?Thomas Nielsen05/11/01 12:55
How do I get the refering URL?Luis Oliveira05/08/01 06:56
RE: Just use WebalizerDunk Fordyce04/24/01 05:11
RE: Just use WebalizerHeimir Gunnlaugsson04/20/01 15:44
or use phpOpenTracker for that :)thomas04/19/01 07:08
RE: it's bad!Dunk Fordyce04/19/01 05:20
Just use WebalizerChristopher Kings-Lynne04/19/01 02:05
gah. been there done that, here's the code.Stephen VanDyke04/18/01 18:24
it's bad!Jorge Falcão04/17/01 14:26
RE: What's the SQL for the session method?Dunk Fordyce04/17/01 08:11
RE: What's the SQL for the session method?Arta04/17/01 04:27
What's the SQL for the session method?Skunk04/16/01 09:15
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.