trackAgreeToAllClick

The trackAgreeToAllClick() method tracks clicks on the Agree to all button.

Syntax

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