Manager Events
Managed Components provides a few methods that allow a tool to introduce server-side functionality.
Some of the most common manager events are listed below.
📄️ Client created
The clientcreated event is dispatched whenever the manager sees a new client.
📄️ Ecommerce
The ecommerce event is dispatched for an ecommerce event.
📄️ Pageview
The pageview event is dispatched whenever a request for a new page is requested.
📄️ User-configured events
Managers allow users to dispatch events from their website, and then map these configured events to different tools. A tool can register to listen to events and then define the way it will be processed.
Note
The events listed here are the most common ones we see in third party tools but a manager can technically listen to any event.
For example: We can have a listener that listens for a hello
event.
manager.addEventListener('hello', event => {
console.log("Hello")
})