Publish storefront events
Functions
The following functions publish events to notify all subscribers.
mse.publish.addToCart
Publishes the addToCart event.
contextSyntax:
mse.publish.addToCart(ctx);
mse.publish.customUrl
Publishes the customUrl event.
contextSyntax:
mse.publish.customUrl(ctx);
mse.publish.initiateCheckout
Publishes the initiateCheckout event.
contextSyntax:
mse.publish.initiateCheckout(ctx);
mse.publish.instantPurchase
Publishes the instantPurchase event.
contextSyntax:
mse.publish.instantPurchase(ctx);
mse.publish.pageActivitySummary
Publishes the pageActivitySummary event.
contextSyntax:
mse.publish.pageActivitySummary(ctx);
mse.publish.pageView
Publishes the pageView event.
contextSyntax:
mse.publish.pageView(ctx);
mse.publish.placeOrder
Publishes the placeOrder event.
contextSyntax:
mse.publish.placeOrder(ctx);
mse.publish.productPageView
Publishes the productPageView event.
contextSyntax:
mse.publish.productPageView(ctx);
mse.publish.recsItemAddToCartClick
Publishes the recsItemAddToCartClick event.
unitIdunitIdproductIdproductIdcontextSyntax:
mse.publish.recsItemAddToCartClick(unitId, productId, ctx);
mse.publish.recsItemClick
Publishes the recsItemClick event.
unitIdunitIdproductIdproductIdcontextSyntax:
mse.publish.recsItemClick(unitId, productId, ctx);
mse.publish.recsRequestSent
Publishes the recsRequestSent event.
contextSyntax:
mse.publish.recsRequestSent(ctx);
mse.publish.recsResponseReceived
Publishes the recsResponseReceived event.
contextSyntax:
mse.publish.recsResponseReceived(ctx);
mse.publish.recsUnitRender
Publishes the recsUnitRender event.
unitIdunitIdcontextSyntax:
mse.publish.recsUnitRender(unitId, ctx);
mse.publish.recsUnitView
Publishes the recsUnitView event.
unitIdunitIdcontextSyntax:
mse.publish.recsUnitView(unitId, ctx);
mse.publish.referrerUrl
Publishes the referrerUrl event.
contextSyntax:
mse.publish.referrerUrl(ctx);
mse.publish.removeFromCart
Publishes the removeFromCart event.
contextSyntax:
mse.publish.removeFromCart(ctx);
mse.publish.searchCategoryClick
Publishes the searchCategoryClick event.
searchUnitIdunitIdnamecontextSyntax:
mse.publish.searchCategoryClick(searchUnitId, name, ctx);
mse.publish.searchProductClick
Publishes the searchProductClick event.
searchUnitIdunitIdskuskucontextSyntax:
mse.publish.searchProductClick(searchUnitId, sku, ctx);
mse.publish.searchRequestSent
Publishes the searchRequestSent event.
searchUnitIdunitIdcontextSyntax:
mse.publish.searchRequestSent(searchUnitId, ctx);
mse.publish.searchResponseReceived
Publishes the searchResponseReceived event.
searchUnitIdunitIdcontextSyntax:
mse.publish.searchResponseReceived(searchUnitId, ctx);
mse.publish.searchResultsView
Publishes the searchResultsView event.
searchUnitIdunitIdcontextSyntax:
mse.publish.searchResultsView(searchUnitId, ctx);
mse.publish.searchSuggestionClick
Publishes the searchSuggestionClick event.
searchUnitIdunitIdsuggestionsuggestioncontextSyntax:
mse.publish.searchSuggestionClick(searchUnitId, suggestion, ctx);
mse.publish.shoppingCartView
Publishes the shoppingCartView event.
contextSyntax:
mse.publish.shoppingCartView(ctx);
mse.publish.signIn
Publishes the signIn event.
contextSyntax:
mse.publish.signIn(ctx);
mse.publish.signOut
Publishes the signOut event.
contextSyntax:
mse.publish.signOut(ctx);
mse.publish.updateCart
Publishes the updateCart event.
contextSyntax:
mse.publish.updateCart(ctx);