To optimize variants for revenue or revenue per visitor (RPV), the shopping cart value, product ID and order ID can be transferred.
The e-commerce values must be passed in HTML before the bunchbox snippet. Example:
<script>
var _bb = _bb || [];
_bb.push(["ecommerce", "orderSize", 99.99]); // Shopping cart value as decimal
_bb.push(["ecommerce", "orderId", "XYZ1234567890"]); // Optional: Order-ID
_bb.push(["ecommerce", "productIds", ["12345", "12346", "12347"]]); // Optional: List of product IDs
</script>
<script src="//cdn.bunchbox.co/[id].min.js"></script>
If there are several conversion goals in an experiment, the e-commerce values can be transferred for each goal. For example, the sales for the destination "shopping cart" and the destination "order" are then displayed.
Comments
0 comments
Please sign in to leave a comment.