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

Justtechjobs.com Post A Job | Post A Resume

User route tracing
Logging is an old subject. It's simple just record the page requested, time, IP number and maybe the refering URL. Instantly you can draw up graphs on the most popular pages, the best referers etc. This in its own right is very useful. However, when I was looking at the logs on one of my larger sites, I thought - I know that page "x" gets so many hits a day, but the user could have come to that page using a variety of different routes. How do users get to page "x"? On some sites there is a variety of different ways to reach the same page. On PHPbuilder for example, most people probably see the list of new articles and choose one of those. How many people go to the columns page and look at all the articles? This isn't the best example but I think you get the idea. If you know this information you can see how effective your navigation system really is.
This idea can be implemented in a very simple way to begin with. By using the refering URL you can get some insight into how they got to a page. I keep my own logs as described in this article. I don't filter out the query string because I want to know exactly where users have looked, this means that if someone came from a search engine I can see the keywords they entered to find my site and if they enter a page that is only available through a query string I can see that too. I use a mySQL table like this to keep all my logging information in :
create table logging
	(
	timestamp BIGINT,
	remote_ip char(15),
	page text,
	refering_page text
	);
Then I can use a query like this for some basic route tracing :
SELECT count(refering_page) AS hits,refering_page FROM logging WHERE page="pagex" GROUP BY refering_page ORDER BY hits
Instantly an ordered list of how most people get to a page. Now this is all well and good I hear you say but thats hardly a route!
[ Next Page ]


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.