Events
Event shape
export interface IEventMetadata {
eventId: string;
namespace: 'actions' | 'forms';
event: string;
originalEvent: string;
actionNamespace?: 'address' | 'product' | 'cart' | 'checkout' | 'other';
timestamp: number;
}
export interface IEnhancedEventData<T> {
data: T;
metadata: IEventMetadata;
}window.addEventListener('lce:actions.event_name', (event) => {
const { data, metadata } = event.detail;
});Namespaces
Client lifecycle
lce:actions.client_ready
lce:actions.client_readyProduct events
lce:actions.product_loaded
lce:actions.product_loadedlce:actions.product_add_to_cart
lce:actions.product_add_to_cartlce:actions.product_size_changed
lce:actions.product_size_changedlce:actions.product_fulfillment_type_changed
lce:actions.product_fulfillment_type_changedlce:actions.product_fulfillment_changed
lce:actions.product_fulfillment_changedlce:actions.product_quantity_increase
lce:actions.product_quantity_increaselce:actions.product_quantity_decrease
lce:actions.product_quantity_decreaseAddress events
lce:actions.address_updated
lce:actions.address_updatedlce:actions.address_cleared
lce:actions.address_clearedlce:actions.address_failed
lce:actions.address_failedCart events
lce:actions.cart_loaded
lce:actions.cart_loadedlce:actions.cart_opened
lce:actions.cart_openedlce:actions.cart_closed
lce:actions.cart_closedlce:actions.cart_updated
lce:actions.cart_updatedlce:actions.cart_reset
lce:actions.cart_resetlce:actions.cart_failed
lce:actions.cart_failedlce:actions.cart_item_added
lce:actions.cart_item_addedlce:actions.cart_item_removed
lce:actions.cart_item_removedlce:actions.cart_item_quantity_increase
lce:actions.cart_item_quantity_increaselce:actions.cart_item_quantity_decrease
lce:actions.cart_item_quantity_decreaselce:actions.cart_item_engraving_updated
lce:actions.cart_item_engraving_updatedlce:actions.cart_promo_code_applied
lce:actions.cart_promo_code_appliedlce:actions.cart_promo_code_removed
lce:actions.cart_promo_code_removedlce:actions.cart_promo_code_failed
lce:actions.cart_promo_code_failedlce:actions.cart_product_add_success
lce:actions.cart_product_add_successlce:actions.cart_product_add_failed
lce:actions.cart_product_add_failedCheckout events
lce:actions.checkout_loaded
lce:actions.checkout_loadedlce:actions.checkout_opened
lce:actions.checkout_openedlce:actions.checkout_closed
lce:actions.checkout_closedlce:actions.checkout_failed
lce:actions.checkout_failedlce:actions.checkout_customer_information_updated
lce:actions.checkout_customer_information_updatedlce:actions.checkout_billing_information_updated
lce:actions.checkout_billing_information_updatedlce:actions.checkout_gift_information_updated
lce:actions.checkout_gift_information_updatedlce:actions.checkout_is_gift_toggled
lce:actions.checkout_is_gift_toggledlce:actions.checkout_billing_same_as_shipping_toggled
lce:actions.checkout_billing_same_as_shipping_toggledlce:actions.checkout_marketing_preferences_toggled
lce:actions.checkout_marketing_preferences_toggledlce:actions.checkout_item_removed
lce:actions.checkout_item_removedlce:actions.checkout_item_quantity_increase
lce:actions.checkout_item_quantity_increaselce:actions.checkout_item_quantity_decrease
lce:actions.checkout_item_quantity_decreaselce:actions.checkout_item_engraving_updated
lce:actions.checkout_item_engraving_updatedlce:actions.checkout_tip_updated
lce:actions.checkout_tip_updatedlce:actions.checkout_submit_started
lce:actions.checkout_submit_startedlce:actions.checkout_submit_completed
lce:actions.checkout_submit_completedlce:actions.checkout_submit_failed
lce:actions.checkout_submit_failedlce:actions.checkout_promo_code_applied
lce:actions.checkout_promo_code_appliedlce:actions.checkout_promo_code_removed
lce:actions.checkout_promo_code_removedlce:actions.checkout_promo_code_failed
lce:actions.checkout_promo_code_failedlce:actions.checkout_gift_card_applied
lce:actions.checkout_gift_card_appliedlce:actions.checkout_gift_card_removed
lce:actions.checkout_gift_card_removedlce:actions.checkout_gift_card_failed
lce:actions.checkout_gift_card_failedlce:actions.checkout_product_add_success
lce:actions.checkout_product_add_successlce:actions.checkout_product_add_failed
lce:actions.checkout_product_add_failedForm events
lce:forms.customer
lce:forms.customerlce:forms.billing
lce:forms.billinglce:forms.gift
lce:forms.giftAnalytics example
Last updated

