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.

Overview

Google Maps is the dominant web mapping service used by websites to embed interactive maps, provide location search, display store locators, and integrate geocoding or routing functionality through the Maps JavaScript API.

What This Script Does

The Google Maps JavaScript API loads from maps.googleapis.com and renders interactive map tiles, markers, and overlays within designated page elements. Depending on the implementation, it may use the following APIs:

  • Maps JavaScript API: Renders map tiles, handles zoom/pan interactions, displays markers and info windows.
  • Places API: Provides address autocomplete, place details, and business information.
  • Geocoding API: Converts addresses to coordinates and vice versa.
  • Directions API: Calculates routes and travel times.

Cookies: Google Maps may set cookies including NID (google.com, 6-month expiry) used to store preferences and CONSENT cookies. When a visitor interacts with the map, session cookies manage map state. If the visitor is signed into a Google account, additional account-related cookies may be present.

Data transmitted: Each map tile request transmits the visitor's IP address, viewport coordinates, zoom level, and User-Agent. If Places or Geocoding APIs are used, search queries and coordinates are sent to Google's servers. The Maps API requires an API key that identifies your Google Cloud project.

JavaScript execution: The Maps API loads and executes substantial JavaScript. It accesses the DOM to render map elements and may use geolocation APIs (with browser permission) if location-based features are enabled.

Consent & Compliance

Google Maps falls under the functional consent category. It provides user-requested functionality (viewing a map, finding directions, searching for locations) rather than analytics or advertising.

Under GDPR, the primary concerns are:

  • IP address transmission to Google (a US-based processor), addressed by the EU-US Data Privacy Framework.
  • Cookies set by the Maps embed. The NID cookie stores preferences and is not strictly necessary.
  • If geolocation is used, explicit browser-level permission is required in addition to consent.

Under ePrivacy, cookies set by the map embed for preference storage may require consent, even though the map itself serves a functional purpose.

Under CCPA, the data transmitted to Google through Maps does not typically constitute "sale" or "sharing" for advertising, but is subject to standard personal information protections.

Should You Block This Without Consent?

Conditional. Google Maps serves a functional purpose but sets cookies and transmits data to Google. The approach depends on your compliance posture:

  • Conservative: Block the live Google Maps embed until functional consent is obtained. Show a static map image or placeholder with a click-to-load interaction.
  • Moderate: Load Google Maps under legitimate interest for functional purposes, noting that it sets some non-essential cookies.
  • If using geolocation features: Always require explicit consent, as geolocation involves sensitive data.

Many consent management platforms treat Google Maps as functional and load it without marketing consent, while providing a fallback image for strict-consent scenarios.

Visit website

Consent Categories

Functional

Also Known As

Google Maps embedMaps JavaScript APIGoogle Maps GDPRmaps.googleapis.com

Industries

Computers Electronics and TechnologySearch Engines

Tracked Domains (2)

maps.googleapis.comFunctional
maps.google.comFunctional

Frequently Asked Questions

Does Google Maps require cookie consent?

Conditionally. Google Maps is functional but sets non-essential cookies and transmits data to Google. A conservative approach blocks the embed until functional consent is obtained. A moderate approach loads it under legitimate interest. Geolocation features always require explicit consent due to the sensitivity of location data.

What cookies does the Google Maps JavaScript API set?

Google Maps may set NID (google.com, 6-month expiry) for map preferences and CONSENT cookies. Each tile request transmits the visitor's IP address, viewport coordinates, zoom level, and User-Agent. Places and Geocoding API calls send search queries and coordinates. Signed-in Google users may have additional account-related cookies present.

How does ConsentStack categorize and manage Google Maps?

ConsentStack classifies Google Maps as functional, detected via scripts from maps.googleapis.com. When functional consent is granted, the interactive embed loads. When denied, ConsentStack blocks the Maps API script and displays a static placeholder with click-to-load, preserving layout without triggering Google network requests.

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

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

Manage consent for Google Maps

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