---
title: Standard storefront events and actions
description: >-
  Standard storefront events and actions give a storefront and the apps running
  on it a shared vocabulary.
source_url:
  html: 'https://shopify.dev/docs/api/storefront-events-and-actions'
  md: 'https://shopify.dev/docs/api/storefront-events-and-actions.md'
api_name: storefront-events-and-actions
---

# Standard storefront events and actions

Standard events and actions are a fixed set of event names and calls that don't change from one storefront to the next. A storefront dispatches an event when a commerce interaction happens, such as a buyer adding an item to the cart. An app or an AI agent calls an action to request a change, such as opening the cart.

Apps used to do this by parsing a storefront's DOM or intercepting `window.fetch`, which meant a separate integration for every storefront. Now one integration covers them all.

## Events

[Events](https://shopify.dev/docs/api/storefront-events-and-actions/events) are DOM events with a `shopify:` prefix, such as `shopify:product:view` and `shopify:cart:lines-update`. They cover page and product views, collection filtering, cart changes, and search.

[Dispatch events\
\
](https://shopify.dev/docs/api/storefront-events-and-actions/events/dispatch)

[Emit events from your storefront when commerce interactions happen.](https://shopify.dev/docs/api/storefront-events-and-actions/events/dispatch)

[Listen for events\
\
](https://shopify.dev/docs/api/storefront-events-and-actions/events/listen)

[Respond to storefront activity from your app or your storefront code.](https://shopify.dev/docs/api/storefront-events-and-actions/events/listen)

***

## Actions

[Actions](https://shopify.dev/docs/api/storefront-events-and-actions/actions) are calls your app makes to read the cart, change it, or show it to the buyer, without needing to know how that storefront renders it. The same `openCart` call works for a drawer or a cart page.

Actions work out of the box on every Liquid storefront. Every action has a default behavior, and a storefront can override it.

[Configure actions\
\
](https://shopify.dev/docs/api/storefront-events-and-actions/actions/configure)

[Override an action's default behavior so it updates your UI without reloading the page.](https://shopify.dev/docs/api/storefront-events-and-actions/actions/configure)

[Call actions\
\
](https://shopify.dev/docs/api/storefront-events-and-actions/actions/call)

[Trigger storefront behavior from your app or agent.](https://shopify.dev/docs/api/storefront-events-and-actions/actions/call)

***

## Resources & tools

[Events reference\
\
](https://shopify.dev/docs/api/storefront-events-and-actions/events)

[Look up the properties of every event and where to dispatch it from.](https://shopify.dev/docs/api/storefront-events-and-actions/events)

[Actions reference\
\
](https://shopify.dev/docs/api/storefront-events-and-actions/actions)

[Look up the parameters and resolved value for every action.](https://shopify.dev/docs/api/storefront-events-and-actions/actions)

[Standard events inspector\
\
](https://shopify.dev/docs/api/shopify-cli/theme/theme-dev#flags-propertydetail-standardeventsinspector)

[Watch events as they fire and call actions by hand while you develop.](https://shopify.dev/docs/api/shopify-cli/theme/theme-dev#flags-propertydetail-standardeventsinspector)

***
