New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@moengage/web-sdk

Package Overview
Dependencies
Maintainers
9
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moengage/web-sdk

Moengage Web SDK package

latest
Source
npmnpm
Version
2.73.1
Version published
Weekly downloads
10K
-6.86%
Maintainers
9
Weekly downloads
 
Created
Source

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(
  {
    appId: 'XXXXXXXXXXXX',
    env: 'LIVE',
    logLevel: 0,
  }
);

moengage.identifyUser({
  uid: 'abc@xyz.com',
  u_mb: '8989898989',
  u_fn: 'some name',
});

// or simply
moengage.identifyUser('abc@xyz.com') // sets just uid

moengage.setEmailId('qwerty@xyz.com');

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

moengage.logoutUser();

License

MIT

Keywords

moengage

FAQs

Package last updated on 09 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts