Page 1 of 1

Tracewatch (solved)

Posted: Thu Jul 06, 2006 9:24 am
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?

Re: Tracewatch

Posted: Thu Jul 06, 2006 11:35 am
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

Posted: Thu Jul 06, 2006 11:48 am
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!