--- title: Emitting Data description: App users and app developers can publish custom customer events from online store theme liquid files, [theme app extensions](/docs/apps/online-store/theme-app-extensions), [checkout UI extensions](/docs/api/checkout-ui-extensions/latest/extension-points-overview) and [customer account UI extensions](/docs/api/customer-account-ui-extensions/latest/targets). When custom customer events are published they can be accessed by all custom pixels and app pixels. api_name: web-pixels source_url: html: https://shopify.dev/docs/api/web-pixels-api/emitting-data?utm_channel=W24-editions-website md: https://shopify.dev/docs/api/web-pixels-api/emitting-data.md?utm_channel=W24-editions-website --- # Emitting Data App users and app developers can publish custom customer events from online store theme liquid files, [theme app extensions](https://shopify.dev/docs/apps/online-store/theme-app-extensions), [checkout UI extensions](https://shopify.dev/docs/api/checkout-ui-extensions/latest/extension-points-overview) and [customer account UI extensions](https://shopify.dev/docs/api/customer-account-ui-extensions/latest/targets). When custom customer events are published they can be accessed by all custom pixels and app pixels. ## Publishing custom events The `analytics.publish` method is available in different contexts for publishing custom events. The `analytics.publish` method takes an `event_name` and some `event_data` as parameters. The object passed into the `event_data` field is shared with subscribers to the event using the `customData` field. If you haven't set up a way for users to define custom transformation of payloads, then your app pixels might not be able to parse these custom fields. Custom pixels, though, can be changed by the users to translate custom fields to a service’s required format. UI Extensions In Checkout and Customer Accounts, you can publish custom events from your UI extensions. For more information, refer to the [analytics checkout extension point on the StandardApi](https://shopify.dev/docs/api/checkout-ui-extensions/latest/apis). Important To ensure the quality of standard events, partners and merchants cannot publish standard events. `Shopify.analytics.publish` only exposes the method to publish custom events. To avoid collision with standard events, custom events should be prefixed with the app name or a unique identifier. For example, `my_app:event_name`. ### Examples * #### Publishing Custom Events ##### Online Store ```js /** * In the online store you can access the `analytics.publish` method on the Shopify object. * Inside theme app extensions or within the `