1.2.0 • Published 8 years ago

ng-pendo v1.2.0

Weekly downloads
27
License
MIT
Repository
github
Last release
8 years ago

ng-pendo v1.2.0

Installation

$ npm i --save ng-pendo

Usage

Import pendolytics module:

import ngPendo from 'ng-pendo';

or

var ngPendo = require('ng-pendo');

Provide your api key:

window.pendo_options = {
    apiKey: 'replace this with your api key',
    usePendoAgentAPI: true
};

Include pendolytics in your AngularJS modules:

angular.module('your-app', [...,'pendolytics',...]);

or

angular.module('your-app', [...,ngPendo,...]);

When you have access to the visitor information use it to identify the visitor:

getVisitorInformationFromSomewhere().then(function (visitor) {
    $pendolytics.identify({
        visitor: {
            id: visitor.id,
            role: visitor.role,
            email: visitor.email
        },
        account: {
            id: visitor.accountId
        }
    });
});
1.2.0

8 years ago

1.1.0

8 years ago

1.0.6

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago