Adding app tracker control code