How is LeanData Tagging Triggered

How LeanData tagging is triggered: the events and conditions that start matching and tagging.