I'm currently developing a tiny little tracking-plugin which shows (or better: should show) the "footsteps" of each visitor.
0. Came from google
1. Enterered main Site;
2. Watched Category "Others".
3. Watched Post "Why am I so great?
4. Left out to the world
I first achieved that goal by reading the HTTP_GET_VARS and fishing for "p=" etc. params. But that does only work on the short version of permalinks.
So I know how to get the title from an Id etc. but I just didn't find out WHERE the User actually is by functions. Has he just clicked on a post? Which one? Is he watching the archive?
A link to the right area of dev-dokumentation would be just enough. Thanks.