It is not illegal to monitor employee behaviour however companies must abide by national ad state laws, often including notifying employees that they are monitored, protecting employees' personal data by sharing it without their consent or misuse of data.