An event is a specific behavior recorded during an optimization.
Events are emitted by a website and recorded against an optimization. They can occur when the user clicks a particular element on a page, or by visiting a page itself.
Here is a detailed PDF about creating events, with a comprehensive example.
To follow that example, also download these two *.yml files to use in the Evolv Web Editor:
Steps to create an event in the Manager
- Navigate to “Events” in the left nav bar and select the “New Event” button. Enter an event name, an event key, and optionally, a description. An event is defined by its key, which is the unique identifier that is sent to the Evolv system indicating the event has occurred so that the event can be counted.
- To record the completion of an event, send the event key to Evolv
- For a web implementation, see the JavaScript SDK docs
- For an SDK implementation, see the open-source Github project examples
- For an API implementation, see the API developer documentation
Note that for event naming, use a specific description of the event itself. For example, “Button Clicked”, not “Conversion Achieved”. This will make them easier to re-use between different projects with different conversion goals.
Here's an example
From the docs:
Unique key in the Manager:
Syntax example:
window.evolv.client.emit("unique.key");