Tracewatch (solved)

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Hokey
Regular
Posts: 141
Joined: Wed Dec 14, 2005 3:36 pm
Location: Germany
Contact:

Tracewatch (solved)

Post by Hokey »

Hi!

I've got follwowing problem, it's not a native S9Y-Problem but maybe someone can help me. I'm using Tracewatch for getting some statistics about my blog. Why I prefer Tracewatch ist that TW is able to generate visitor-paths so that I can see what people read and what they ignore.

I think a screenshot illustrates my problem.

Image


It shows just the paths up to "/index.php" and the more interesting rest is missing. :-(

Tracewatch uses php-code like this (JS is also possible):

Code: Select all

<?php 
@include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php';
?>
wich I added to my index.php. Tracewatch counts all guest because they come over the index.php and shows that they are moving around, but it doesn't tell me where they move.

Maybe someone of the S9Y-specialists can tell me where I have to implement the php-code to get the full visitor paths?
Last edited by Hokey on Thu Jul 06, 2006 11:49 am, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Tracewatch

Post by garvinhicking »

Hi!

You would need tracewatch to not log your PHP_SELF reference, but instead use the REQUEST_URI to log the pages, I think.

The way you call the script is fine, there's nothing you can change there. It needs to be modified/configured inside tracewatch.

Because as you already figured out, s9y uses index.php for all its requests to have a central place to put MVC-pattern code.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Hokey
Regular
Posts: 141
Joined: Wed Dec 14, 2005 3:36 pm
Location: Germany
Contact:

Post by Hokey »

Hi Garvin!

I found a solution for this! As usual I was blind - I could have had this long time before, if I only had read this and used the Code Generator.

If anyone wants to use tracewatch in future he can use this code in the index.php:

Code: Select all

<?php 
$GLOBALS['adl_count_params']=true;
@include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php';
?>
This works for me!
Post Reply