ember-cli-appcues
Easily add Appcues to your Ember app.
Installation
Please install this addon into your Ember.js project using ember-cli:
ember install ember-cli-appcues
Configuration
Add your Appcues App ID into your config/environment.js
file:
ENV'ember-cli-appcues' = accountId: '[YOUR_ACCOUNT_ID]' lazyLoad: true;
- lazyLoad: wait for the first call to Appcues to load its library.
This addon will automatically call Appcues.page()
for each transitions as long as identify
or anonymous
was first
called.
Appcues service
This service exposes some of the AppCues Javascript API.
- Check if
anonymous
oridentify
was called.
this
Appcues.identify(userId, userProperties = {})
this
Appcues.anonymous()
this
Appcues.page()
this
Appcues.track(eventName, eventProperties)
this
Appcues.show(contentId)
this
Appcues.clearShow()
this
Appcues.debug()
this
Appcues.reset()
this
Contributing
Installation
git clone <repository-url>
cd ember-cli-appcues
npm install
Linting
npm run lint:hbs
npm run lint:js
npm run lint:js -- --fix
Running tests
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versions
Running the dummy application
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
License
This project is licensed under the MIT License.