Yes. In this case probably not allowed because not strictly necessary (cookie law) and therefore needs consent from user.
Do we have any jurisprudence on fingerprinting?
Do we have any jurisprudence on fingerprinting?