The people at Segment.io did a great job in building analytics.js, making it easy to load lots of javascript snippets (Intercom, GA, Kissmetrics, and so on) via one single open-source javascript library.
Repository: https://github.com/segmentio/analytics.js
They do offer a hosted version, with a nice UI for enabling integrations, this is a paid product. However, analytics.js is open source, so you could also use it for free (as self-hosted solution).
Too bad there's no good how-to-set-this-up documentation available.
There are some blogs about this, but these are out-dated:
- https://content.pivotal.io/blog/how-to-use-analytics-js-to-fix-your-analytics-code-and-achieve-metrics-nirvana
- Issues with SegmentIO open source version setup of analytics.js
Anybody who knows a place where we can find good docs on how to implement the open-source version analytics.js?
If these docs just don't exist, we should start writing 'em, as it really makes a developers life way easier.