started event tracking code