client/lib/analytics/ad-tracking.js
function recordOrderInCriteo( cart, orderId ) {
	if ( ! isAdTrackingAllowed() || ! isCriteoEnabled ) {
		return;
	}

	const params = [
		'trackTransaction',
		{
			id: orderId,
			currency: cart.currency,
			item: cartToCriteoItems( cart ),
		},
	];
	debug( 'recordOrderInCriteo:', params );
	recordInCriteo( ...params );
}
function recordOrderInCriteo( cart, orderId ) {
	if ( ! isAdTrackingAllowed() || ! isCriteoEnabled ) {
		return;
	}

	const params = [
		'trackTransaction',
		{
			id: orderId,
			currency: cart.currency,
			item: cartToCriteoItems( cart ),
		},
	];
	debug( 'recordOrderInCriteo:', params );
	recordInCriteo( ...params );
}
function recordOrderInCriteo ( cart , orderId ) { if ( ! isAdTrackingAllowed ( ) || ! isCriteoEnabled ) { return ; } const params = [ 'trackTransaction' , { id : orderId , currency : cart . currency , item : cartToCriteoItems ( cart ) , } , ] ; debug ( 'recordOrderInCriteo:' , params ) ; recordInCriteo ( ... params ) ; }
Records an order in Criteo

@param {Object} cart - cart as `CartValue` object
@param {Number} orderId - the order id
@returns {void}
Records an order in Criteo