Add Modal Close Tracking Support

Problem Statement

Currently, there is no reliable way to track when users close a Pelcro modal, making it difficult to measure user interactions and modal abandonment.

User Story

As an integrator, I want a reliable way to detect when a Pelcro modal is closed so that I can accurately track user behavior and trigger custom analytics.

Definition of Done (DoD)

  • Add a unique ID to the modal close button to support client-side tracking.

  • Emit a pelcroModalClosed SDK event whenever a Pelcro modal is closed.

  • Ensure the event is fired regardless of whether the modal is closed via the close button, Escape key, or clicking outside the modal (where applicable).

  • Document the new ID and SDK event for developers.

  • Verify the event is emitted consistently across all Pelcro modals.

Please authenticate to join the conversation.

Upvoters
Status

Backlog

Board
πŸ’‘

Pelcro Product

Date

About 1 month ago

Author

Rana Haleem

Subscribe to post

Get notified by email when there are changes.