Using piwik to track Magento visitors is a easy thing to do.
In Magento Connect there is a plugin to install
See my earlier post if you don’t wish to turn your site to alpha on all packages.
For the settings, most are self explaining, the token can be found in piwik under API and is labeled API key, please read the warnings about using it and consider if you will need it.