Webmasters want to know where all visitors coming from, which pages they visit and how long does it take webpages to load in miliseconds. This tutorial shows how to save your visitors/website details like referrer, browser/client, ip-address, langind-page in three steps. Remember if your scripts ends with exit() or die() command, footer code will not work. Just remove that commands or put them below footer code.
- Create your mysql table
- Add top-code
- Add bottom-code
SQL Query
Execute this code with phpMyAdmin or a similar tool to create your mysql table.
Start code at the top of page
Put this code at the top of your .php file (config.php rewrite-catcher etc)
End code at the bottom of file
Add this code to your last .php file, in most cases footer.php. Be sure that no exit() or die() command placed above this code.
Now you can analyze your visitors and page generation time with phpMyAdmin.
thanks for this useful posts. Really, i need this!