added analytics.js support