Update event tracking code.