If you want to collect the data of your users, you must conduct web tracking in accordance with the ePrivacy Directive and the GDPR. This means: first obtain the active, informed consent of your visitors and then track them. If you do not comply with this, you could face very high fines for these data protection violations.