Releases: adopted-ember-addons/ember-metrics
Options Abound
🎉 The Big One Oh 🎉
Long overdue, but here it is.
https://github.com/adopted-ember-addons/ember-metrics/blob/master/CHANGELOG.md#v100
For Real: One More Time
🧗♀️Send-tember is Here! 🧗♂️
Summertime Vibes
Please see CHANGELOG.md for details.
[DEPRECATION-FIX] getOwner
This patch releases fixes a minor deprecation about the use of the container. Thanks to @rwjblue for assistance on this release.
[BUGFIX] Invalid default
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.
Ember 2.x Compatibility
This patch release fixes a deprecation warning in the metrics initializer. Thanks to @XrXr for this PR.
[ADAPTER] Segment.js
This release includes an adapter for Segment.js and minor fixes.
Changelog
- #45 GA nonInteraction field – @noslouch
- #46 CSP documentation – @colinhoernig
- #47 Force Google Analytics to use SSL for mobile ember apps – @cigoe
- #49 Add Segment Adapter – @seanpdoyle
[BREAKING] Environments and removal of link-to
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'
}
}
]
}
}