Specific player tracking

I want to track a specified player with a compass, using the player ID system to track a player with the ID provided the compass will point towards that player. How to do it? also the player i want to track i want to do a cmd /trigger track set {playerid}
Continue to help post