Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

katsos/ng-pendo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
        }
    });
});

About

Pendo.io AngularJS module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%