Back
Technology

Google search engine utilizes various cookies with specific functions and durations

View source

Google's Search Engine: The Cookies Behind the Curtain

Google's search engine relies on a complex ecosystem of cookies to function. These small pieces of data serve distinct purposes, from remembering your language preference to measuring the effectiveness of online advertising. Each cookie has a predetermined lifespan, after which it expires.

Google uses dozens of cookies with lifespans ranging from a single browsing session to 20 years, each serving a specific function in personalization, advertising, and security.

Core Functionality & Preferences

Several cookies are dedicated to core user experience and account management.

  • _Secure-ENID: Remembers user preferences including language, search results per page, and SafeSearch settings. Duration: 13 months.
  • SIDCC, SSID, APISID, SAPISID, SID, HSID: A group of cookies that download certain Google Tools, save preferences (like results per page and SafeSearch), and adjust ads in Google Search. Duration: 2 years.
  • CGIC: Improves search results delivery by autocompleting queries based on user input. Duration: 6 months.
  • django_language: Necessary for the use of website options and services. Duration: 3 months.
  • SOCS: Stores the user's state regarding their cookie choices. Duration: 13 months.
  • cookies_accepted: Verifies that the user has allowed cookies to be set on their machine. Duration: 1 year.
  • SEARCH_SAMESITE: Prevents the browser from sending the cookie with cross-site requests to mitigate security risks. Duration: Session.
  • GCLB: Used for load balancing to optimize response times by distributing traffic. Duration: Session.

Account Sign-In & Authentication

A separate set of cookies manages user authentication across Google's services.

  • SMSV, ACCOUNT_CHOOSER, G_AUTHUSER_H: Used for signing in with a Google account and managing authentication sessions. Duration: Session.
  • __Host-1PLSID, __Host-GAPS, __Host-3PLSID, LSOLH, g_enabled_idps: Used to sign in with a Google account or for Google Single Sign-On. Duration: 1 year.
  • __Secure-ENID: Used by Google to prevent fraudulent login attempts; contains a user ID for statistics after a successful login. Duration: 11 months.

Advertising & Performance Measurement

A significant number of cookies are focused on advertising, personalization, and measuring campaign performance.

  • gcl, FPGCLDC: Helps advertisers determine user actions on their site after clicking an ad. Duration: 90 days.
  • gac: Measures user activity and ad campaign performance for advertisers. Duration: 90 days.
  • AdID: Shows Google ads on non-Google sites and personalizes ads based on user settings. Duration: 2 weeks.
  • DSID: Identifies signed-in users on non-Google sites to respect ad personalization settings. Duration: 2 weeks.
  • _gcl_au, _gcl_dc: Used by Google AdSense for experimenting with advertisement efficiency across websites. Duration: 3 months.
  • _dcid: Collects information on user behavior across multiple websites to optimize advertisement relevance. Duration: 400 days.
  • TAID: Links activity across devices if a user has previously signed into a Google Account on another device, to coordinate ads and measure conversions. Duration: 14 days.
  • A: Makes advertising more engaging to users and more valuable to publishers and advertisers. Duration: 17 days.
  • 1P_JAR: Set via embedded YouTube videos; registers anonymous statistical data. Duration: 1 month.

Analytics & Statistics

These cookies gather data on how services are used, which informs improvements and business metrics.

  • OTZ: Aggregates analysis of website visitors. Duration: 17 days.
  • GN_PREF, NID, DV, AID: Collect website statistics and track conversion rates and Google ad personalization. Duration: 1 year.
  • SNID, OSID, LSID: Collect website statistics and track conversion rates and Google ad personalization. Duration: 6 months.
  • COMPASS: Collects website statistics and tracks conversion rates and Google ad personalization. Duration: 2 days.
  • UULE: Sends precise location information to Google servers to show location-relevant results. Duration: 6 hours.

Consent, Compliance & Security

A final category handles legal compliance, security, and fraud prevention.

  • CONSENT: The primary Google cookie consent tracker. Duration: 20 years.
  • FCCDCF, FCNEC: Cookies for the Google Funding Choices API, allowing functionality specific to consent gathering for GDPR and CCPA. Duration: 13 months.
  • _Secure-YEC (first instance): Serves a purpose for YouTube, including detecting and resolving problems. Duration: 13 months.
  • _Secure-YEC (second instance): Used to detect spam, fraud, and abuse to protect advertisers and YouTube creators. Duration: 13 months.
  • receive-cookie-deprecation: Ensures browsers in a Chrome-facilitated testing experiment include a specific request header. Duration: 180 days.