I don't understand why these 'analytics-clones' always have to be written in js. I would much prefer a ruby gem that does all this in the backend.
Can log custom info, goals, conversions, revenue etc.
I use them for "normal" js site tracking, and now for app tracking without JS and couldn't be happier.