Track events with static and dynamic variables