JavaScript
Method Description
Implemented in tracker with an async call that accepts product ID as parameter. Operation name and input fields can be set up via Maestra framework.
maestra('async', {
operation: '<operation name>',
data: {
customer: {
ids: {
<ID>: '<ID value>',
},
},
product: {
ids: {
<ID>: '<product ID value>'
},
productGroup: {
ids: {
<ID>: '<SKU ID value>'
}
},
}
}
});
Sample Operations
maestra('async', {
operation: 'ViewProduct',
data: {
product: {
ids: {
bitrixId: '26765438'
}
}
}
});
maestra('async', {
operation: 'ViewSku',
data: {
product: {
ids: {
bitrixId: '26765438'
},
sku: {
ids: {
bitrixId: '26765438'
}
}
}
}
});
maestra('async', {
operation: 'ViewSku',
data: {
customer: {
ids: {
bitrixId: '42',
},
},
product: {
ids: {
bitrixId: '26765438'
},
sku: {
ids: {
bitrixId: '26765438'
}
}
}
}
});
Updated about 2 months ago