Add custom event tracking sample code.