Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want to provide all my clients with a statistics tracking code and then they can log into MY control panel to view their statistics; ie I need some sort of script where I provide their site ID and their statistics will be embedded.
Use Piwik! I use it all the time! And perfect for your needs!
Try with Google Analytics