upgrade to analytics.js