I'm trying to calculate revenue using custom events as guided on optimizely with the example code. The values are showing up correctly in the experiment results but AOV is assuming each event as a single transaction.
window['optimizely'] = window['optimizely'] || [];
window['optimizely'].push({
type: "event",
eventName: "mattressRevenue",
tags: {
revenue: 0, // Optional in cents as integer (500 == $5.00)
value: 0.00 // Optional as float
}
});
For example, I place an order with 3 items in the cart with 3 different categories i.e. one from mattresses, 2nd from accessories and so on. It will then assume each product as a separate order for AOV calculation.
The events are being sent to optimizely separately as below:
Is there something missing from the code or in the optimizely settings?
Any help regarding this would be grateful!