Analytics.js — Segment.io: "Analytics.js is a simple, clean wrapper for all of your web analytics services.
Instead of littering your codebase with hooks for every analytics service you want to use, you instrument your website once and your data gets routed to any analytics service you want! The library is open-source, so you can check it out on Github.
"