use new Analytics.js api