Coordinates for object tracking

and how do you track them? a piece of code would help you.