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.

Visit website

Consent Categories

Functional

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

Frequently Asked Questions

Does Google Programmable Search require cookie consent?

Conditionally. Core site search can load under functional consent, but the NID cookie is a persistent cross-service Google identifier that complicates that argument. If search ads monetization is enabled, marketing consent is required for the advertising components.

What cookies does Google Programmable Search set?

The widget sets NID (google.com, 6-month expiry) for preferences, and 1P_JAR (1-month expiry) if search ad monetization is active. Search queries, page URL, browser user agent, and IP are sent to cse.google.com. Recent queries may also be stored in localStorage.

How does ConsentStack categorize Google Programmable Search?

ConsentStack classifies Google Search as functional, detected via cse.google.com/cse.js. The widget loads when functional consent is granted. If search ads are configured on the engine, ConsentStack also flags marketing consent as required before the full ad-enabled widget activates.

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.
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

Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
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.
Microsoft Teams
Microsoft Teams
Microsoft Teams is a workplace communication and collaboration platform that can be embedded on websites for chat, meetings, and document sharing. Embedded widgets load from Microsoft's servers to enable real-time messaging, video calls, and file collaboration. Sets authentication and session cookies to verify participant identity and maintain connection state.
Apple
Apple
Primarily present through Apple Maps JavaScript embeds and Apple Pay JS on e-commerce sites. The Maps script renders interactive maps and may log interaction events. Apple Pay JS checks device eligibility and communicates with Apple servers during checkout to complete payment sessions.
Apple Business Chat
Apple Business Chat
Apple Business Chat enables direct customer messaging between websites and Apple's Messages app. Scripts load chat buttons and conversation interfaces that connect visitors to business support agents through iMessage. Sets minimal session cookies to maintain conversation context but does not track browsing behavior or collect analytics data.
Apple Maps JS
Apple Maps JS
Apple Maps JS is Apple's JavaScript mapping framework for embedding interactive maps on websites. Scripts load map tiles, location pins, and routing data from Apple's MapKit servers to render navigable maps within web pages. Requires a MapKit JS token for authentication but does not set tracking cookies or collect behavioral analytics data.

Manage consent for Google Search

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