Skip to content

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:

  1. Navigate to the DataLayer Guard configuration page.
    DataLayer Guard configuration image

  2. Prepare the list of events you want to be monitored.

  3. Click on the Monitoring via scraped events tab.
    Monitoring via scraped events image

  4. Click on the Add event button.
    Add event image

  5. Enter the event name in the corresponding field. event name field

  6. 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 JSON button

    Add events field by field:

    • Enter the parameter name in the "Parameter" field. parameter name field

    • Select the type of value. Note: for nested arrays or objects, select the array or object type accordingly. type of value dropdown

    • Specify if the value is required or not. value required field
    • Determine if the value should match a specific value or if it can be dynamic. value match field
    • Enter the value or an example of the value (if dynamic) in the "Value" field. value field
    • Click the add icon at the end of the row to add more parameters and rows.
      add icon
  7. Define how the event is triggered from the How does this event fire dropdown. event trigger

  8. Specify the URL on which the event can be found. URL field
  9. If the event is an interaction event, define the trigger element for the event. trigger element
  10. Hit the save button to save the event. save button

Watch the video below to learn how to add the events