I second SnowPlow; the difference between them and other offerings (like Piwik) is that they don't attempt to be a Google Analytics knockoff, but have a distinct philosophy about how analytics should function.
And there is a library for Arduino!
SnowPlow is the best.
SnowPlow + Looker is a really powerful and flexible combination. [Disclaimer: I work at Looker.]