Pages

Analytics.js

Every project needs analytics. But you shouldn't have to litter your codebase with third-party-specific calls. Changing or adding new services should be a snap.

That's where analytics.js comes in! Instead of adding hooks for every single analytics service you integrate, you add a single set of provider-agnostic hooks that then route to any analytics service you want!

Source : http://segmentio.github.com/analytics.js/