service:analytics#createAdapters looks for config.analytics.integrations, but there's no config computed property on service:analytics. This library gets around that by defining config in app/services/analytics.
I can't extend this library's version of app/services/analytics; I can only import the addon version from ember-cli-analytics/services/analytics. That means I lose the config definition and have to supply it myself. That's not hard to do, but it's not obvious that I need to. (I spent a good 45 minutes trying to debug why my list of integrations was empty.)
Thank you for suggesting this. I've gone ahead and implemented this change. It is only on master currently whilst I try and sort out the other issue you posted
https://github.com/tomasbasham/ember-cli-analytics/blob/f891eac9f85f0a932d60f9754f7b83ed103d43db/addon/services/analytics.js#L77
service:analytics#createAdapters
looks forconfig.analytics.integrations
, but there's noconfig
computed property onservice:analytics
. This library gets around that by definingconfig
inapp/services/analytics
.I can't extend this library's version of
app/services/analytics
; I can only import the addon version fromember-cli-analytics/services/analytics
. That means I lose theconfig
definition and have to supply it myself. That's not hard to do, but it's not obvious that I need to. (I spent a good 45 minutes trying to debug why my list of integrations was empty.)Instead, I recommend