trackCloseButtonClick
The trackCloseButtonClick() method tracks clicks on the close button (X).
Syntax
ppms.cm.api('trackCloseButtonClick', onFulfilled, onRejected);Parameters
onFulfilled: () => void
The fulfillment handler callback.
onRejected: (error: object) => void
The rejection handler callback. If not specified, the error is logged in the console.
Examples
ppms.cm.api(
'trackCloseButtonClick',
function () {
console.log('Close button click tracked.')
},
function (error) {
console.error(error)
}
)