Managing Event Specifications in the Console
Creating a new Event Specification through Consoleโ
Event specifications serve as direct counterparts to data structures and encapsulate the documented events within a data product.
Please note that the creation of event specifications is exclusive to data products.
Create event specifications in tandem with the latest deployed data structure version in development. This ensures tracking implementation instructions align with the validation criteria in the event specification.
Your event specification guarantees compatibility with the associated data structure version, being a specialization of it. This ensures events tracked using specified instructions pass validation for the associated data structure.
Creating and Editing Event Specificationsโ
To create a new event specification, follow these steps:
- Select a data product
- Click the "Create event" button
- A dialog will appear, prompting you to enter a name for your event specification and click "Save and continue"
- Your first event specification will be displayed on the page
To add more information or modify an existing event specification, follow these steps:
- Navigate to the appropriate data product
- Select the desired event specification
- This action will open on overview of the selected event specification containing the details that have been added to date
This interface is divided into focused sections; explore each section below for more details.
Event Informationโ
This section provides essential meta-information for your event specification, including the event name, description, and the applications in which this event is tracked.
Event Data Structureโ
This section defines the event data structure that this event will validate against as it is processed by your pipeline.
You can choose from two types of data structures:
- Standard; Provided by the Snowplow tracker by default
- Custom; Provided by your organization
Entity Data Structuresโ
Within this section, you have the flexibility to define the entities that should be associated with the event when it is triggered.
To facilitate making an informed selection of your entities, you can view a detailed breakdown of the properties associated with the chosen entities (and its version) by a specific version.
Event Triggersโ
This section defines the locations and circumstances under which this event is triggered.
To create your first trigger, simply select the "Add trigger" button. You can edit or delete an existing trigger by clicking the dedicated buttons beside each entry in the triggers list.
A dialog will appear, allowing you to upload an image and provide additional context, such as the URL to the page on which this trigger applies.
Propertiesโ
This section allows you to specify how each property for a selected event or entity data structure should be populated.
The dialog displays the list of properties for the selected data structure will be listed here, with the ability to provide the exact value/s or a description of how to populate these properties when the event is triggered.
You can configure detailed instructions for any of the properties shown in the list by clicking the "Add instruction" or "Edit" buttons. Once you have selected the type of instruction you wish to add/edit and have filled in the required input fields, you are then able to click "Save and update instruction" and return to the properties list.
Notes: instructions for required properties are added by default and can be edited but they cannot be deleted.