Created tracker code for analytics