Learn how to enable and configure custom events to control section visibility on your store
Custom events provide a flexible way to control section behavior in your store. This guide demonstrates how to set up and use custom events to manage section rendering based on various scenarios and conditions.
Custom events enable you to:
In your app-embed settings, locate the “Init Event Name” section inside the app-embed and in the input field write your desired event name (e.g., initialize_app).
This setting tells Glood AI which event to listen for before initializing the sections.
Here’s a simple example of how to trigger the custom event. When this event is dispatched, Glood AI will initialize all sections that are configured to listen for this event:
Scroll-Based Loading
User Interaction Based
Time-Based Loading
Event Naming
Performance
Error Handling
If sections aren’t appearing as expected:
If you need help with setting up or customizing events, contact our support team at support@glood.ai
Learn how to enable and configure custom events to control section visibility on your store
Custom events provide a flexible way to control section behavior in your store. This guide demonstrates how to set up and use custom events to manage section rendering based on various scenarios and conditions.
Custom events enable you to:
In your app-embed settings, locate the “Init Event Name” section inside the app-embed and in the input field write your desired event name (e.g., initialize_app).
This setting tells Glood AI which event to listen for before initializing the sections.
Here’s a simple example of how to trigger the custom event. When this event is dispatched, Glood AI will initialize all sections that are configured to listen for this event:
Scroll-Based Loading
User Interaction Based
Time-Based Loading
Event Naming
Performance
Error Handling
If sections aren’t appearing as expected:
If you need help with setting up or customizing events, contact our support team at support@glood.ai