File size: 400 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import { mayWeTrackByTracker } from '../tracker-buckets';
import { recordViewCheckoutInCriteo } from './criteo';
// Ensure setup has run.
import './setup';
/**
* Records that a user viewed the checkout page
* @param {Object} cart - cart as `ResponseCart` object
*/
export function recordViewCheckout( cart ) {
if ( mayWeTrackByTracker( 'criteo' ) ) {
recordViewCheckoutInCriteo( cart );
}
}
|