We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6531
    • 154 Posts
    Is there a way to track what pages a visitor loads as they go through my site?
    I’m sure there’s a way to do it via a plugin that is called by OnWebPageComplete ... and logging the user name and page name ...
    but it’s WAY beyond my ability... unless someone can tell me how to write some code that will put this info into a database? or log text file?
    It should look like ...

    Time,User,Event,Document
    2008-10-31 22:15,Bob,LoggedIn,0
    2008-10-31 22:16,Bob,Loaded,Welcome
    2008-10-31 22:16,Bob,Loaded,News
    ...
    2008-10-31 22:19,Bob,LoggedOut,0
    


    I’m going to try this webanalyse thingy from sottwell and http://www.webanalyse.fr
      • 6531
      • 154 Posts
      Help!
      I tried installing webanalyse ... and it’s doing it’s thing, as far as logging.

      But I’m using friendly URLS, and modx won’t let me IN to the webanalyse/index.php file!

      My .htaccess starts with:
      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html).*$ [NC]
      RewriteRule . - [L]
      </IfModule> 
      


      which allows me to view www.mysite.com/stats on dreamhost ...

      How do I modify htaccess to allow me into www.mysite.com/webanalyse huh

      thanks!
        • 6531
        • 154 Posts
        Wow! THANK YOU, GaneshXL!
        Amazing. MODx continues to blow my mind.
          • 6531
          • 154 Posts
          And a tip ....
          The logfile was returning the server’s time; I wanted my local time.
          So I added this to [tt]/manager/includes/config.inc.php[/tt]:
          date_default_timezone_set('America/New_York');


          You can find allowable timezone names here:
          http://www.php.net/manual/en/timezones.php