# 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) and [checkout extensions](https://shopify.dev/docs/api/checkout-ui-extensions/latest/extension-points-overview). 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. ```js /** * In the online store you can access the `analytics.publish` method on the Shopify object. * Inside theme app extensions or within the `