diff --git a/addon/metrics-adapters/segment.js b/addon/metrics-adapters/segment.js index 4bf6c927..e803ed15 100644 --- a/addon/metrics-adapters/segment.js +++ b/addon/metrics-adapters/segment.js @@ -16,10 +16,94 @@ export default BaseAdapter.extend({ assert(`[ember-metrics] You must pass a valid \`key\` to the ${this.toString()} adapter`, segmentKey); - /* eslint-disable */ - window.analytics=window.analytics||[],window.analytics.methods=["identify","group","track","page","pageview","alias","ready","on","once","off","trackLink","trackForm","trackClick","trackSubmit"],window.analytics.factory=function(t){return function(){var a=Array.prototype.slice.call(arguments);return a.unshift(t),window.analytics.push(a),window.analytics}};for(var i=0;i