Added support for the new analytics.js