Monitoring via scraped events
This guide will walk you through configuring dataLayer events to be monitored by DataLayer Guard.
Adding events
To add events for monitoring, follow these steps:
-
Navigate to the DataLayer Guard configuration page.
-
Prepare the list of events you want to be monitored.
-
Click on the
Monitoring via scraped events
tab.
-
Click on the
Add event
button.
-
Enter the event name in the corresponding field.
-
For adding the events you have two options:
Add the entire event in valid JSON format:
- Click on the
Add JSON
button and paste the entire event. The event will be displayed in the event table, enabling you to edit, add, and remove fields easily.
Add events field by field:
-
Enter the parameter name in the "Parameter" field.
-
Select the type of value. Note: for nested arrays or objects, select the array or object type accordingly.
- Specify if the value is required or not.
- Determine if the value should match a specific value or if it can be dynamic.
- Enter the value or an example of the value (if dynamic) in the "Value" field.
- Click the add icon at the end of the row to add more parameters and rows.
- Click on the
-
Define how the event is triggered from the
How does this event fire
dropdown. - Specify the URL on which the event can be found.
- If the event is an interaction event, define the trigger element for the event.
- Hit the save button to save the event.