Create a snippet and reference it at the top of every template you want to track, or write a plugin that does basically the same thing plus any logic to determine if that page should be tracked. You could use the global system settings and individual page donthit setting to determine which pages to index and which to ignore.
I like the Webanalyse-Nanobody, found on Sourceforge, as a web statstics tool. I have used it on different cms platforms, but cannot figure out how to best implement it in Modx. It require two line of php code on every page you want to include inthe statistics. It would be nice to just include it in the template. Anyone of you guys how to do that?
Thanks for any suggestions/hints