A trip-tracking system records people traveled route which could be retrieved immediately or latter for certain purposes. The recent tracking application does not integrate both passive and real-time tracking function into one system. The aim of this work is to build a tracking system that integrates both passive and real-time tracking functions. A new system architecture consisting the client side which is a map tracking application on smart devices, and the server side which includes a server and a database in the cloud, was developed. Because of the ability to store and process database on the cloud, the system would be more secure, available and durable. More importantly, it can be tracked at any time and from anywhere. The results demonstrated a complete system with three real-world experiments on Android application and web interface.