CleverTap Web SDK Showcase (Latest)

Initialization & Basic Settings





User Profile Management

Identify a user (onUserLogin) or update the current profile (profile.push).


Event Tracking


Push an event with properties:

Web Popups (In-App for Web)

Web Popups are triggered by campaigns configured in the CleverTap dashboard. These campaigns often react to specific events occurring on the website.

Click the button below to push an event named 'Trigger Popup Event Button Clicked'. If you have a Web Popup campaign set to trigger on this event, it should appear.

Make sure a Web Popup campaign targeting this event is active in your CleverTap account.

Web Push Notifications

Requires `clevertap_sw.js` at root and VAPID keys configured in CleverTap dashboard.

Native Display

Placeholders for content pushed via Native Display campaigns.

(Native Display Banner Placeholder - ID: native-display-banner)


(Native Display Key-Value Placeholder - ID: native-display-kv. Check console for data if KV campaign is active.)

Requires Native Display campaigns configured in CleverTap. You might need custom JavaScript to render Key-Value pair data.

Web Inbox

Configure Element ID (e.g., 'webInboxTrigger') and styling in CleverTap Settings -> Channels -> Web Inbox. Content appears based on campaigns.