Is it legal to track cheating spouses?

The use of hidden GPS equipment to track (allegedly) cheating spouses is quite controversial. Of course, the strongest argument against this practice is the obvious invasion of privacy.