If you are looking for a great way to track traffic on your site without using third party analytics solutions Open Web Analytics is the way to go.

Open Web Analytics is software framework developed by Peter Adams and OWA is licensed under GPLv2. The software is run directly on your server meaning no one else is seeing or recording your traffic stats. OWA is freely available for download. However as always if you find a software that is useful to your projects you should always make a contribution to the project by donating or sharing with other who can also benefit from the project. 

To use OWA you just need to install the framework on your server which is actually very simple. The installation is very similar to WordPress or Joomla. Actually for WP it's as simple as uploading the tar file to the WP plugins directory and un taring it then creating a DB for OWA in your PHP my admin console and running the basic setup.

 

You can get Open Web Analytics here