Core rule
Attack, hit, and damage triggers
Making an attack, landing a hit, and dealing damage are different triggers.
An attack can miss, and a hit may deal no damage because of Immunity. Read the event that actually activates the effect.
A spell with several projectiles does not automatically trigger every item once per projectile. Effects may count a cast, each hit, or each damage event differently.