Sending an add to cart

The Add to cart event is available for both CS Merchandising and CS Digital customers.
The event is not available in CS Apps.

If you use CS Merchandising, specify an SKU value identical to the value in the Product Catalogue:

<script type="text/javascript">
window._uxa = window._uxa || [];
window._uxa.push(['ec:cart:add', {
sku: "SKU_added_to_cart", /* mandatory - Product code (SKU) (string) */
merchant: "merchant_name" /* optional - Merchant name (string) */
}]);
</script>

If you use CS Digital only, you can omit the SKU:

<script type="text/javascript">
window._uxa = window._uxa || [];
window._uxa.push(['trackPageEvent', 'addToCart']);
window._uxa.push(['ec:cart:add', {
merchant: "merchant_name" /* mandatory - Merchant name (string) */
}]);
</script>

To implement an Add to cart with GTM, use a custom HTML tag with this script and pass the SKU using the corresponding variable and trigger whenever there is an add to cart.