With abundant bandwidth resources, terahertz communications are considered one of the key technologies to meet the requirement for high data-rate transmission in the future. In order to compensate for the severe propagation loss of terahertz communications, directional antennas with high gain and narrow beams are expected to be adopted, making beam tracking significant for robust communications. In this paper, a tracking method based on power measurement is proposed, consisting of beam status monitoring, recognition of the deviation direction, and movement toward the optimal angle. By observing the change in the received signal power, beam misalignment is first checked, and whether the misalignment is out of tracking range is also determined. Then, the deviation direction is recognized by comparing the received power variations in the candidate directions, and the beam angle is adjusted accordingly until it reaches the optimal angle. With a small scanning range, the deviation direction is recognized in a short duration, allowing for rapid beam tracking. Numerical results indicate that the alignment error is competitively low and stable in the proposed beam tracking method, and its technical superiority is particularly dominant in situations involving variable motion at high speeds.