Skip to main content
Appstle Subscriptions dispatches JavaScript events from appstle-subscription.js, which is automatically injected into your storefront when the app is installed. You can listen to these events to track subscription interactions in analytics tools, show or hide custom UI, and react to customer actions in the cart and portal. All events are dispatched on both document and window, so you can attach listeners to either.
These events are dispatched by appstle-subscription.js, which loads automatically on your storefront once the Appstle Subscriptions app is installed. No additional configuration is required to start listening.

Subscription widget events

These events fire when customers interact with the subscription widget on product pages.

Cart widget events

Customer portal events

Build-a-Box events

Other events

Code examples

Track subscription selections in analytics

Show custom UI when the widget loads

React to cart subscription changes

Run custom logic around customer portal embedding

Track selling plan changes