Skip to main content

Event Firing

Definition

This document provides a detailed walkthrough of the logic behind triggering all types of events in the Pulse miniapp SDK, including both built-in and custom events.

custom events

From the miniapp scope, you can trigger custom events by adding them to the global dataLayer array. For more detailed information, please refer to the documentation here.

built-in events

The Pulse miniapp SDK fires 3 built-in event from the miniapp scope:

Event Delivery Mechanism of the SDK

The SDK delivers each event from the DataLayer to the root application analytics SDK using the transport function provided by the client during initialization. The root application Pulse SDK processes every event delivered from the miniapp, augmenting it with additional information such as session and tab details, before transmitting it to the server.

note

In a web environment, the transport function places the provided events into the dataLayer of the root application.