ember-cli-profitwell
This addon inserts the ProfitWell script into the
<head>
of the page for you.
Installation
ember install ember-cli-profitwell
After installing the addon, you MUST provide a configuration value for your
authentication token.
Configuration
You can configure some of the variables used in the inserted script.
ENV['ember-cli-profitwell'] = {
enabledEnvironments: ['production'],
authToken: 'YourAuthToken'
};
Usage
The addon exposes a profitwell
service through which you can set the email of
the current logged in user.
profitwell: Ember.inject.service(),
onLogin(userEmail) {
this.get('profitwell').setUserEmail(userEmail);
}
...