Content
Why Call Them Cookies?
The name might seem a bit whimsical for a piece of tracking technology. The term “cookie” is often attributed to programmer Lou Montulli, and it’s believed to echo the concept of “magic cookies” used in Unix computing – small data packets passed between programs. Others like the analogy of fortune cookies, where a small message (data) is hidden inside something seemingly plain (the cookie file). Regardless of the exact origin, the name stuck, representing these small data files websites leave with your browser.Different Flavors: Types of Cookies
Not all cookies are created equal. They serve different purposes and last for different lengths of time. Understanding the main types helps clarify what’s happening behind the scenes:Session Cookies
These are temporary cookies. They exist only in your browser’s temporary memory while you are actively navigating a website. As soon as you close your browser window, these cookies are deleted. Their main job is to maintain your ‘session’ state. For example:- Login Status: Keeping you logged in as you move from page to page within a site.
- Shopping Carts: Remembering what items you’ve added to your cart during a single shopping session.
- Navigation Data: Helping the site understand the path you took through its pages during that visit, often for temporary usability improvements.
Persistent Cookies
Unlike their session counterparts, persistent cookies don’t expire when you close your browser. They remain on your hard drive for a set period defined by the website – this could be days, months, or even years. They are activated each time you revisit the site that created them. Their uses include:- Remembering Preferences: Storing your choices like language, theme, or layout settings for future visits.
- ‘Remember Me’ Functionality: Keeping you logged in across multiple sessions if you check that box (though this often involves storing login tokens securely, not plain passwords).
- Tracking Visits: Recording that you are a return visitor.
First-Party Cookies
These cookies are set directly by the website domain you are currently visiting (the one shown in your browser’s address bar). They are typically used for the core functions we’ve discussed: remembering logins, preferences, shopping carts, and performing basic website analytics (like counting visitors and seeing which pages are popular on that specific site). Generally, first-party cookies are seen as necessary for a good user experience on the site itself.Third-Party Cookies
Here’s where things get more complex and where most privacy concerns arise. Third-party cookies are set by a domain other than the one you are currently visiting. This typically happens when a website incorporates elements from other sites, such as:- Advertisements (ad networks)
- Social media ‘like’ or ‘share’ buttons
- Analytics services (though some use first-party cookies)
- Embedded videos or widgets
Important Note on Third-Party Cookies: These cookies are the main technology behind seeing ads for a product follow you around the internet after you’ve viewed it on one site. Because they track your activity across different websites, they raise significant privacy concerns for many users. Major web browsers are increasingly phasing out support for third-party cookies due to these concerns.
So, What Specific Data Do Cookies Track?
Now let’s drill down into the actual pieces of information that cookies, particularly persistent and third-party ones, can collect and store. It’s not usually personally identifiable information like your name or email address directly within the cookie itself (unless you’ve provided it to the site, like checking “Remember Me”), but rather data linked to your browser or device activity.Browsing Patterns on a Site
First-party cookies often track how you interact with the specific website that set them. This includes:- Pages Visited: Which specific pages you looked at.
- Time on Page: How long you spent viewing each page.
- Links Clicked: Which internal links you followed.
- Visit Frequency: How often you return to the site.
- Entry/Exit Pages: Where you arrived from and where you left.
User Settings and Preferences
As mentioned, persistent cookies excel at remembering your choices to provide a consistent experience:- Language Selection: Displaying the site in your chosen language automatically.
- Theme/Layout Choices: Remembering if you prefer a dark mode or a specific font size.
- Accessibility Settings: Storing preferences for users with disabilities.
Authentication and Session Management
Session cookies are crucial here, but persistent cookies can play a role:- Login Status: Confirming you are logged in for the duration of your visit (session).
- User Identification (Token): Storing a unique identifier that confirms your logged-in status without storing your password directly (can be persistent if ‘Remember Me’ is used).
Shopping Cart Information
Essential for e-commerce, cookies track:- Items Added: Remembering the products you’ve placed in your cart.
- Cart Persistence: Sometimes keeping items in your cart even after you leave the site and return later (persistent cookie).
Basic Device and Browser Information
Cookies can store or help identify technical details about your setup:- Browser Type and Version: (e.g., Chrome, Firefox, Safari).
- Operating System: (e.g., Windows, macOS, Android).
- Screen Resolution: To help optimize page layout.
Referral Data
Websites often want to know how you found them. Cookies can help track:- Referring Website: The site you clicked a link on to get there.
- Search Engine Query: Sometimes, the search terms used (though this is becoming less common due to privacy changes in search engines).
- Ad Campaign Source: If you clicked on an advertisement.
Cross-Site Behaviour (Primarily Third-Party Cookies)
This is the most controversial tracking:- Websites Visited: Recording the different sites you visit that host the same third-party tracker (e.g., ad network).
- Ad Interactions: Noting which ads you were shown and whether you clicked on them across different sites.
- Interest Profiling: Building a inferred profile of your interests based on the types of websites and content you view.
- Unique Browser ID: Assigning a unique number to your browser to recognize it across the web (within the limits of that third-party’s network).
Managing Your Cookie Jar
The good news is that you aren’t powerless. Modern web browsers offer robust controls for managing cookies. You can typically find these in the browser’s settings menu, often under sections labeled ‘Privacy’, ‘Security’, or ‘Site Settings’. Options usually include:- Viewing the cookies currently stored on your computer.
- Deleting all cookies.
- Deleting cookies for a specific website.
- Blocking all cookies (though this can break website functionality).
- Blocking only third-party cookies (a common and recommended setting).
- Setting exceptions for specific websites.