Google Search

Google Search

Google Search appears on websites through the Programmable Search Engine, enabling custom site-specific search functionality. Scripts load the search widget from Google's servers to render search bars and display results within the host website. Sends search queries to Google's index and may set cookies for search personalization and query history.

Overview

Google Programmable Search Engine (formerly Google Custom Search Engine) allows website operators to embed a Google-powered search experience scoped to their own content. Rather than building and maintaining a custom search index, sites delegate search functionality to Google's infrastructure, gaining access to Google's ranking algorithms and index coverage. The widget is commonly found on documentation sites, knowledge bases, and content-heavy portals.

What This Script Does

The Programmable Search Engine loads via cse.google.com/cse.js. When a visitor enters a query, the widget sends it to Google's search API scoped to the configured site or set of domains, then renders results inline on the page.

  • Script loaded: cse.google.com/cse.js — renders the search box and results container within a designated div element
  • Network requests: Search queries are sent to cse.google.com along with the site's search engine ID, query terms, and pagination parameters
  • Cookies: The widget may set Google cookies including NID (6-month expiry, used for search settings and preferences) and 1P_JAR (1-month expiry, used for ad personalization if Google Ads integration is enabled on the search engine)
  • Data transmitted: Search query text, referring page URL, browser user agent, and IP address are sent to Google's servers with each search request
  • Local storage: The widget may store recent search queries and display preferences in the browser

The search results page can include Google Ads if the publisher has enabled search ads monetization, in which case additional advertising cookies and tracking pixels load.

Consent & Compliance

Google Programmable Search Engine falls under the functional consent category when used purely for site search. If search ads monetization is enabled, advertising components shift parts of the functionality into the marketing category.

Under GDPR and ePrivacy, the core search functionality can be argued under legitimate interest (Article 6(1)(f)) as it provides expected site functionality. However, the NID cookie set by Google is a persistent identifier used across Google services, complicating the legitimate interest argument. The ePrivacy Directive requires consent for non-essential cookies regardless of the legal basis for data processing.

Under CCPA/CPRA, search queries and associated identifiers transmitted to Google constitute personal information. If search ads are enabled, the data sharing with Google's ad network constitutes "sharing" for cross-context behavioral advertising.

Data transfers to Google's US servers are covered under the EU-US Data Privacy Framework.

Should You Block This Without Consent?

Conditional. If the Programmable Search Engine is used without search ads monetization, it serves a functional purpose and can load under functional consent or legitimate interest, though it still sets Google cookies. If search ads are enabled, the advertising components require marketing consent. Consider implementing a search placeholder that activates the full Google widget only after consent is granted, or use a self-hosted search index for sites where consent friction is a concern.

Is Google Search GDPR compliant?

Google Search typically loads functional trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Google Search can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Google Search, not on Google Search itself.

Visit website

Consent Categories

Also Known As

Google Custom SearchProgrammable Search EngineGoogle CSEsite search widgetGoogle search bar

Industries

Computers Electronics and TechnologySearch Engines

Tracked Domains (1)

cse.google.comFunctional

cse.google.com is a functional domain operated by Google Search, used to run site features like chat, video, embeds, and preferences.

Frequently Asked Questions

Other Google Products

Firebase
Firebase
Firebase is Google's mobile and web application development platform offering authentication, real-time database, cloud functions, and analytics. Web SDK scripts initialize Firebase services and may track app events via Firebase Analytics, which is powered by Google Analytics 4. Widely used in single-page apps and PWAs for backend infrastructure and usage tracking.
Google Ads
Google Ads
Google Ads is Google's advertising platform for search, display, and remarketing campaigns. Conversion tracking scripts fire on advertiser landing pages to measure actions taken after ad clicks. The remarketing tag builds audience lists for retargeting users across Google's ad network.
Google Analytics
Google Analytics
Google Analytics is the world's most widely deployed web analytics platform. Scripts track page views, sessions, user demographics, traffic sources, and conversion events. Drops cookies to identify returning visitors and attribute user journeys across sessions.
Google Fonts
Google Fonts
Google Fonts is a free font hosting service that serves hundreds of typeface families via a global CDN. Stylesheets and font files load from fonts.googleapis.com and fonts.gstatic.com to deliver web fonts to visitors. No advertising or tracking functionality is included.
Google Maps
Google Maps
Google Maps is the dominant web mapping service used for embedded maps and location features on websites. Scripts load interactive map tiles, geocoding, and Places API functionality through the Maps JavaScript API. May set cookies to remember map preferences and manage API quota.
Google Tag Manager
Google Tag Manager
Google Tag Manager is a tag management system that lets marketers deploy and update analytics and marketing scripts without code changes. The GTM container script loads synchronously in the page head and injects configured tags, triggers, and variables on behalf of other vendors. No data collection of its own — acts as a loader for other scripts.
reCAPTCHA
reCAPTCHA
Google reCAPTCHA is a bot detection and spam prevention service protecting web forms, login pages, and checkout flows. Scripts analyze user behavior, mouse movements, and browser fingerprints to distinguish humans from bots. The invisible reCAPTCHA v3 scores interactions without requiring user challenges.
YouTube
YouTube
YouTube is Google's video platform, widely used to embed video content on external websites. The YouTube iframe player loads JavaScript that communicates with Google's servers for video playback, quality control, and ad serving. Embedded players may set cookies tied to the viewer's Google account to track watch history and personalize recommendations.
Sign in with Google
Sign in with Google
Sign in with Google is an OAuth-based authentication service that enables users to log into websites using their Google account credentials. Scripts load the Google Identity Services library, display sign-in buttons, and handle token exchange for secure authentication. Stores session tokens and authentication cookies to maintain login state across page visits.
YouTube Player
YouTube Player
YouTube Player embeds YouTube videos on external websites via iframe. Scripts load from Google's servers and set cookies for video playback preferences, watch history, and ad targeting. Cookies are dropped even when visitors only view the embed without interacting with the player.

Related Vendors

Firebase
Firebase
Firebase is Google's mobile and web application development platform offering authentication, real-time database, cloud functions, and analytics. Web SDK scripts initialize Firebase services and may track app events via Firebase Analytics, which is powered by Google Analytics 4. Widely used in single-page apps and PWAs for backend infrastructure and usage tracking.
reCAPTCHA
reCAPTCHA
Google reCAPTCHA is a bot detection and spam prevention service protecting web forms, login pages, and checkout flows. Scripts analyze user behavior, mouse movements, and browser fingerprints to distinguish humans from bots. The invisible reCAPTCHA v3 scores interactions without requiring user challenges.
Contact At Once!
Contact At Once!
Contact At Once! (now part of CarGurus) is a live chat platform for automotive dealerships. Scripts embed a chat widget on dealer websites to connect shoppers with sales staff in real time. Sets cookies to track chat session state.
Microsoft Power Apps
Microsoft Power Apps
Microsoft Power Apps is a low-code application development platform that enables embedded business applications on websites. Scripts load custom app interfaces from Microsoft's cloud, render form controls and data views, and connect to backend data sources through Power Platform connectors. Sets session cookies to maintain application state and user authentication.
Microsoft Power Automate
Microsoft Power Automate
Microsoft Power Automate is a workflow automation platform that connects to websites through embedded triggers and action widgets. Scripts load form interfaces, approval flows, and automated process components that interact with Microsoft's cloud services. Sets session cookies to authenticate users and maintain workflow state during multi-step automated processes.
Threadloom
Threadloom
Threadloom provides editorial content enhancement tools for publishers. Scripts embed related article recommendations and content discovery widgets on publisher sites to increase page views, session duration, and reader engagement through algorithmically curated content suggestions.

Manage consent for Google Search

ConsentStack automatically detects and manages Google Search trackers so your site stays compliant with global privacy regulations.