User:Dantman/Analytics integration

I keep putting these in pasties for people, so they're in a page now. Most of the extensions I see for analytics integration are crap for various reasons, and to be quite frank, inflexible.

The permissions
To filter out analytics from bots and other groups I add a new right. Feel free to tweak the permissions as you please, I like to filter administrators out of analytics, you can filter less, or even exclude all users from analytics. That's what the permissions are for.

Throw in some security
This is something I don't believe most of the extensions offer, good ole security paranoia of not including 3rd party scripts like analytics on pages like login.

Some extra tracking
I like to track statistics of logged in users, and skins. That way I can tell if my stats are 'really' visitors, and what skins editors like the most.

Other analytics
Naturally the beauty of something so plain and simple being inside your LocalSettings.php is not only being able to tweak it as you need, but also being able to adapt it to any analytics system you add.