JSPM

  • Created
  • Published
  • Downloads 12930
  • Score
    100M100P100Q195473F
  • License MIT

Moengage Web SDK package

Package Exports

  • @moengage/web-sdk
  • @moengage/web-sdk/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@moengage/web-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Logo

Moengage Web SDK

This is the npm package of the origin SDK. Please refer the documentation for full details here

Installation

Install the dependencies.

$ npm i @moengage/web-sdk

Example

import moengage from '@moengage/web-sdk';

moengage.initialize(
  {
    app_id: 'XXXXXXXXXXXX',
    debug_logs: 0
  }
);


moengage.add_unique_user_id('abc@xyz.com');
moengage.add_email('abc@xyz.com');

moengage.track_event('Add to Cart', {name: 'Phone', price: '100000'})

License

MIT