Skip to main content
The MoEngage Web SDK runs on your website as a JavaScript snippet. It tracks visitor attributes and events, registers browsers for web push, and renders on-site messages and cards. Start with Integrating the Web SDK to add and initialize the SDK, then add the channels you need.

Sections in This Guide

Web SDK Overview

Review the SDK modules and check browser and platform compatibility for the features you plan to use.

Web SDK Integration

Add and initialize the SDK, then configure Content Security Policy, proxy domains, cookies, bot filtering, and opt-out.

Data Tracking

Track user attributes and events, set the unique ID, and configure data opt-out for GDPR and CCPA.

Web Push

Set up the service worker, control the opt-in prompt, support Safari on iOS and iPadOS, and report on opt-outs.

Onsite Messaging

Show personalized pop-ups and banners, or receive campaign data as JSON and build your own UI.

Cards

Deliver inbox and newsfeed card campaigns with the MoEngage card UI or your own.

Integration Validation

Validate your integration in the browser with the MoEngage Assist Chrome extension.

Migration

Move to the standardized Web SDK APIs that match the other MoEngage platforms.

Other Supported Integrations

Run the SDK in single page apps, WebViews, browser extensions, smart TVs, Google Tag Manager, and AMP.

Reference Pages

These pages sit outside the sections above:
Review the SDK Deprecation Policy for supported versions and deprecation timelines.