WordPress.org

Ready to get started?Download WordPress

Forums

TraceWatch with WordPress (9 posts)

  1. magdod
    Member
    Posted 8 years ago #

    Hi there
    I love Tracewatch ( http://www.tracewatch.com ) and I'd love to track my wordpress blog with it.
    Anyone knows where should I put my php includes for tracewatch to function properly?

  2. niziol
    Member
    Posted 8 years ago #

    Well, what works for others doesn't work for everyone. I've written a plug-in that adds it to the shutdown hook, it solved all of my issues with running tracewatch in WP, but the only other person who gave it ago, wasn't successful, though I think it was his set-up. Go to my website and send me a message through the "contact me" page if you'd like to give it a go, I will make it available, but I'd kind of like to know if it's going to work for anyone else.

    Cheers,
    Michael.

  3. Turk
    Member
    Posted 8 years ago #

    I use TraceWatch at my site. I just went to their code generator page (http://www.tracewatch.com/doc/code.php) and inserted the code in my footer.

  4. magdod
    Member
    Posted 8 years ago #

    Thx Mike and turk for the reply
    I'm gonna try it in my footer and see how things will go

  5. shady
    Member
    Posted 8 years ago #

    i too am trying to get TraceWatch to work properly in WP (1.5.2) using the PHP page code without much success.
    I've tried it on non-WP-generated pages and it works just like it should, but using the code in many different spots (header, footer, index, blog_header)in the WP pages doesn't return any results.
    There seems to be mixed results with this, but haven't found the implementation that works for me, yet.
    Still looking for anyone who has it working and how they set it up.

  6. shady
    Member
    Posted 8 years ago #

    the resolution to my situation:
    In my server directory I have TraceWatch folders/files in their own (non-root) folder (tw)
    My WP folders/files are in their own (non-root) folder (wordpress)
    With the TraceWatch code generator i needed to specify:

    * http://www.mydomain.com/tw as a Remote TraceWatch address
    * /tw as the 'other' (non-root) address of the local TraceWatch files
    <?php
    $GLOBALS['adl_ext_addr']='www.mydomain.com/tw';
    $GLOBALS['adl_count_params']=true;
    @include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/tw'.'/twatch_include/extlogger.php';
    ?>
    with this code in the theme's footer.php it works as it should for me.
    maybe this can save someone else some time...

  7. marke1
    Member
    Posted 8 years ago #

    Wow, this is really cool stuff! Thanks for the info, and thanks for posting your own resolutions.

  8. tech_provider
    Member
    Posted 8 years ago #

    Just add this
    $GLOBALS['adl_count_params']=true;

    before
    @include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php';

  9. ssanderlin
    Member
    Posted 7 years ago #

    Has anybody worked out a fix for this? I have the provided snippet (@include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php';)
    in my footer.php...

    but no stat update is occuring. I made sure that the evaluation for document_root is correct and the file should be being included.... but no updates are occuring...

    I've tried wp-content/index.php, wp-blog-header.php, header.php, nothing is working.

Topic Closed

This topic has been closed to new replies.

About this Topic