$(document).on(this.fluidbook.input.clickEvent, '#Bastide_cart [data-validate-cart]', function (event) {
event.preventDefault();
- $.ajax('https://bastide-resah.fluidbook.com/fluidbook/order', {
+ $.ajax('/fluidbook/order', {
method: 'POST',
data: {details: $this.getItems()},
+ }).done(function (data) {
+ $this.fluidbook.stats.trackEcommerceOrder([data.order, data.total]);
});
$this.fluidbook.menu.quickCloseView();
break;
case 15://
this.matomoPush(['trackEvent', 'cart', 'addproduct', extra]);
+ this.matomoPush(['setEcommerceView', extra]);
}
},
}
},
+ trackEcommerceOrder: function (orderId, total) {
+ this.matomoPush(['trackEcommerceOrder', orderId, total]);
+ },
trackGoogleAnalytics: function (type, page, extra, url) {
this.checkGoogleAnalytics();