Implement event tracking