simple api to track events