Establish Dependencies Between Triggers
It is sometimes necessary to set the completion of one Data Collection Trigger as a dependency for starting a second Trigger.
Typical situations where this functionality is required are:
- You want to ensure that weekly and monthly Data Collection Triggers start after the daily Trigger finishes so that all the daily data is available for summaries that are based on collected data in Metric Insights.
- You want to define a daily Event which contains composite Reports and you want to ensure that the data for the source Reports has already been collected so you make completion of the core reporting Event a dependency to the composite reporting data collection Event.
This article describes how to create a dependency between two Triggers.
Open Trigger Editor
Access Admin > Collection & Storage > Triggers. In the Triggers list find the first of the Triggers between which the dependency is needed and click its Active Name Link to open the Trigger Editor.
- Open Dependencies tab.
- Click [+ New Dependency] in Trigger Dependencies section.
- Add dependency on: Select the Trigger for establishing dependency.
- Must be satisfied during current collection cycle: After selecting this checkbox, the first of the two Triggers ("calendar-month-reporting-refresh" in this case) will start working only after the Trigger chosen in Add dependency on field ("daily-metric-refresh" in this case) will successfully finish working.
- [Save] the changes.
NOTE: The User can add multiple dependencies to a data collection Event. ALL dependencies must be satisfied before the Event starts.