Function and purpose
Cookies or any other form of local storage can have a function and a purpose. A function is the particular task a cookie has. So a function can be “store the IP adres”. Purpose can be seen as the Why behind the function. So maybe the IP adres is stored because it is needed for Statistics; or it is stored because it is used for marketing/tracking purposes; or it is needed for functional purposes.
For each function you should consider what the purpose of that function is. There are 5 purpose categories: functional, statistics-anonymous, statistics, preferences, and marketing. These are explained below.
Cookies or any other form of local storage that is used exclusively for anonymous statistical purposes (Anonymous Analytics Cookies), that are placed on a first-party domain, and that do not allow identification of particular individuals.
Cookies or any other form of local storage that is used exclusively for statistical purposes (Analytics Cookies).
Cookies or any other form of local storage required to create user profiles to send advertising or to track the user on a website or across websites for similar marketing purposes.
The cookie or any other form of local storage is used for the sole purpose of carrying out the transmission of a communication over an electronic communications network;
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user. If cookies are disabled, the requested functionality will not be available. This makes them essential functional cookies.
Cookies or any other form of local storage that can not be seen as statistics-anonymous, statistics, marketing or functional, and where the technical storage or access is necessary for the legitimate purpose of storing preferences.