WordPress.org

Forums

want to add ip tracking code 'somewehre' (2 posts)

  1. traceywashere
    Member
    Posted 7 years ago #

    i never found a good ip tracking module for wordpress -- then i stumbled upon tracewatch, which rocks HARD. anyway .. all it requires is 2 simple lines ... where is a safe place to put these lines??

    initially i added them to index.php, but they didn't seem to be called. then i tried wp-blog-header.php; but i got strange side effects ...

    any suggestions??

    the code i need to add is:

    $GLOBALS['adl_count_params']=true;
    @include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php';

    thnx

  2. Adam Brown
    Member
    Posted 7 years ago #

    I'm not familiar with this particular bit of code, but you could probably stick it into footer.php, perhaps write above the </body> tag (in case it is loading javascript into your page or something).

Topic Closed

This topic has been closed to new replies.

About this Topic