Send data to multiple analytics integrations without re-implementing new API
Long overdue, but here it is.
https://github.com/adopted-ember-addons/ember-metrics/blob/master/CHANGELOG.md#v100
This aims to be the lacks version before 1.0.0.
canUseDom
https://github.com/adopted-ember-addons/ember-metrics/pull/255
Please see CHANGELOG.md for details.
This patch releases fixes a minor deprecation about the use of the container. Thanks to @rwjblue for assistance on this release.
This patch release fixes an issue where the addon would throw an error when it can't find config.metricsAdapters
. Thanks to @jasonmit for the fix.
This patch release fixes a deprecation warning in the metrics initializer. Thanks to @XrXr for this PR.
This release includes an adapter for Segment.js and minor fixes.
This release is a breaking one – mainly, the augmented link-to
component has been removed. You should track an event by sending an action instead.
A new feature addition is the ability to select which environments an adapter is activated against. By default, your adapter will be active in all environments. To specify which, simply add an environments
property to your configuration:
module.exports = function(environment) {
var ENV = {
metricsAdapters: [
{
name: 'GoogleAnalytics',
environments: ['development', 'production'],
config: {
id: 'UA-XXXX-Y'
}
},
{
name: 'Mixpanel',
environments: ['production']
config: {
token: '0f76c037-4d76-4fce-8a0f-a9a8f89d1453'
}
},
{
name: 'LocalAdapter',
environments: ['all'] // default, equivalent to ['development', 'test', 'production'],
config: {
foo: 'bar'
}
}
]
}
}