trackRejectAllClick

The trackRejectAllClick() method tracks clicks on the Reject all button.

Syntax

ppms.cm.api('trackRejectAllClick', 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(
  'trackRejectAllClick',
  function () {
    console.log('Reject all click tracked.')
  },
  function (error) {
    console.error(error)
  }
)