added first draft of tracking code implementation