JavaScript

Method Description

Implemented in tracker with an async call with additional fields. Operation name and input fields can be set up via Maestra framework.

maestra('async', {
  operation: '<operation name>',
  <transactionId>: '<transaction ID in your system>',
  data: {
    customer: {
      ids: {
      	<ID>: '<ID value>',
      },
      mobilePhone: '<customer mobile number>',
      email: '<customer email>',
    },
    <emailMailing/smsMailing/viberMailing>: {
      customParameters: {
        <parameter value>: '<parameter value>'
      }
    }
  }
});

Sample Operations

maestra('async', {
  operation: 'sendWelcome',
  transactionId: '123123323',
  data: {
    customer: {
      email: '[email protected]'
    },
    emailMailing: {
      customParameters: {
        PromoEndDate: '2024-09-25'
      }
    }
  }
});