Global Events
Global events in Wized are triggers that you can set to run automatically at specific times or when certain conditions are met, without requiring direct user interaction with your website. These events enable you to perform essential tasks and automate background processes, such as loading data at startup, checking permissions, or responding to system events.
When to Use Global Events
Consider implementing global events in the following scenarios:
Performing Actions at Page Load:
- If you need to load initial data, display loading indicators, or conduct security checks at the start or end of page loading, global events are ideal.
Responding to System Events:
- Use global events to handle API responses, manage errors, or take action based on the presence of specific elements on the page.
Creating Automated Workflows:
- Set up global events to trigger automated processes, such as sending email notifications after successful registrations or updating external databases in response to changes within your application.