1.2.0 • Published 6 years ago

ember-cli-pendo-utils v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

ember-cli-pendo-utils

Add pendo to your application.

Installation

ember install ember-cli-pendo-utils

Usage

Configure your Pendo API key in environment.js

// environment.js
ENV.pendo = {
  location: 'head', // optional
  apiKey: 'abc-123'
};

The Pendo JavaScript API is now available globally at window.pendo

For example,

const options = {
  visitor: {
    id: 'userId',
    email: 'userEmail'
  },
  account: {
    id: 'accountId'
  }
};
window.pendo.initialize(options);

Events

EventsDescription
pendo.events.readyFired when the Pendo agent is loaded and initialized.
pendo.events.guidesLoadedFired when guides have loaded successfully.
pendo.events.guidesFailedFired when guides fail to load.

Events Example

const options = {
  visitor: {
    id: 'userId',
    email: 'userEmail'
  },
  account: {
    id: 'accountId'
  },
  events: {
    ready: function() {/*...*/},
    guidesLoaded: function() {/*...*/},
    guidesFailed: function() {/*...*/}
  }
};
window.pendo.initialize(options);
1.2.0

6 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago