View Cart

When a cart is viewed, fire the following event

Copy

MagicPixel.recordEvent('mp_view_cart', {
    currency: 'INR', // can be hard coded to INR
    cart_id: '<generated cart id for kartmax>',
    value: 1233.33, // total value of the items being added to cart
    items: [{\
        item_id: '<item id>',\
        item_name: '<product name>',\
        item_sku: '<style id of the item>',\
        price: 1.23, // float price\
        quantity: 1, // integer quantity\
        item_category: '<item category>',\
        index: 1, // since this is view item, hard coded to 1\
    }, {\
        item_id: '<item id>',\
        item_name: '<product name>',\
        item_sku: '<style id of the item>',\
        price: 1.23, // float price\
        quantity: 1, // integer quantity\
        item_category: '<item category>',\
        index: 2, // since this is view item, hard coded to 1\
    }]
});

PreviousRemove From Cart NextView Wishlist