Europe is a country that puts citizens and their privacy first.
Large corporations collect data about their users daily, without their knowledge. Because of these examples, there is quite a lot of European legislation that we must follow when creating websites and applications.
Privacy is dead, and social media holds the smoking gun.
Protection of personal data
One of the most high-profile requirements was the GDPR (General Data Protection Regulation) adopted in 2016, which changed a lot of things in the field of personal data collection and processing. The order increased the transparency of personal data's use and collection, transmission and use.
Cookies are very popular for storing data in user sessions, and services for website visit analytics are very popular on websites.
The European directive on electronic privacy (ePrivacy) requires the companies to offer the user, in the case of using cookies for analytics, and marketing, the option of choosing if they agree to the use of services.
This rule does not apply to functional cookies (e.g., cookies that store login information)
But this directive applies not only to cookies but to all technologies that enable storage on the computer and re-recognition of users, including possible storage in the browser's local storage (LocalStorage, SessionStorage).
Privacy is not something that I'm entitled to, it's an absolute prerequisite.
Google Analytics yes, or no?
Many companies/organizations use Google Analytics to track user behaviour (me included).
But, can I even use it? The answer is not clear.
The European countries of Austria, France, and Italy have already banned the use of Google Analytics on websites, as Google collects a huge amount of data on user behaviour with Google Analytics and uses it for its own needs - targeted advertising.
However, there are quite a few alternatives with which we can collect analytical data about visits to our websites.
Some of them are:
All these alternatives try to be and collect as little data about visitors as possible, but still, try to get enough data for analysis.
If you ever check a website, you will find that many websites do not follow European directives.
I hope I have shown you how much is required for a website to follow European legislation.
All these rules apply in the European Union and to companies outside the European Union if they collect data about EU citizens.
The article is informative, I am not a lawyer. Consult a lawyer/lawyer for exact determinations.