The Google Maps GDPR problem is simple: a normal Google Maps embed loads from Google’s servers the moment the page opens, so every visitor’s IP address and browser details reach Google before anyone has agreed to anything. The fix is to hold the map back until the visitor says yes, or to replace it with something that sends nothing, such as a plain link or a map image you host yourself. This guide is for WordPress site owners, shops and agencies in the EU, the UK and the US who show a map on a contact or location page.
In this article
What is the Google Maps GDPR problem?
Most WordPress maps are an iframe. You copy the embed code from Google Maps, paste it into a Custom HTML block, or use the map widget of a page builder such as Elementor. Either way, the browser fetches the map from a Google address such as google.com/maps/embed as soon as the page loads. Google’s own documentation describes the Maps Embed API in exactly these terms: you set the embed URL as the src of an iframe.
That request is the whole Google Maps GDPR issue. To deliver map tiles, fonts and scripts, Google’s servers receive the visitor’s IP address, the browser’s user agent, the page that contains the map and any Google cookies the browser already holds. The ClearCrumb service library lists the NID cookie for Google Maps, a Google cookie used to remember preferences.
| What leaves the browser | When | Why it matters |
|---|---|---|
| IP address | With the first request to Google | Can be personal data under the GDPR |
| Page address (referrer) | With the iframe request | Tells Google which page the visitor reads |
| Browser details | With every request | Language, device and browser version |
| Google cookies | When the browser already has them | Storage and access on the device, covered by ePrivacy rules |
None of this is unusual for an embed. A YouTube video or a social feed works the same way, which is why the fix below also works for them. What makes the Google Maps GDPR issue easy to overlook is where maps sit: on the contact page, which owners rarely test.

Which rules shape the Google Maps GDPR question?
Two sets of rules meet here. Article 5(3) of the ePrivacy Directive, and the Privacy and Electronic Communications Regulations (PECR) in the UK, require consent before a site stores or reads information on a visitor’s device, unless that is strictly necessary for the service the visitor asked for. The GDPR then covers the personal data itself, including the IP address. The Court of Justice of the EU held in Breyer (case C-582/14, 19 October 2016) that a dynamic IP address can be personal data.
The European Data Protection Board explains how far Article 5(3) reaches in its Guidelines 2/2023 on the technical scope of Art. 5(3), version 2.0, adopted on 7 October 2024. Its use cases include URL and pixel tracking and tracking based on IP only, which is the territory a third-party embed lives in.
The case most often quoted for this kind of embed is about fonts, not maps. On 20 January 2022 the Munich Regional Court (LG München I, 3 O 17493/20) awarded a visitor 100 euros because a site loaded Google Fonts from Google’s servers without consent and so passed on his IP address. It is a single first-instance ruling, not binding on other courts, and later waves of demand letters citing it were themselves challenged. Still, it shows the reasoning a court may apply to the Google Maps GDPR question too.
Is a map strictly necessary? Usually not. A visitor who opens your contact page asked for your address, not for Google’s interactive map, and the address works as text. That is why most Google Maps GDPR guidance treats a map embed as optional content that waits for consent. In the US the model is different: most state privacy laws ask for an opt-out of sale or sharing rather than consent first, and a map is rarely the focus there.
What are your Google Maps GDPR options?
There are five practical Google Maps GDPR fixes. They differ in what the visitor sees before a choice and in how much work they take. None of them needs custom code on WordPress.
| Option | Before consent | Data sent to Google | Effort |
|---|---|---|---|
| 1. Consent placeholder | A card with a Load map button | None until the visitor clicks | Low with a blocking plugin |
| 2. Plain link to Google Maps | Your address and a “Get directions” link | None until the link is opened | Very low |
| 3. Map image on your server | A picture of the area, linked to the live map | None | Low, check the image licence |
| 4. Placeholder plus image | Image and link above, live map loads after consent | None until consent | Medium |
| 5. Remove the map | Address and directions as text | None | None |
For most sites the best answer is a mix: the consent placeholder for visitors who want the live map, and your address in text plus a link right next to it for everyone else. A switch to OpenStreetMap is not a full Google Maps GDPR fix on its own, because an OpenStreetMap embed also loads from someone else’s server; ClearCrumb’s library lists OpenStreetMap and Mapbox embeds as preferences services too.
How do you block Google Maps until consent with ClearCrumb?
ClearCrumb is a free cookie consent plugin for WordPress by Dotance. It rewrites each page on your server, so a Google Maps iframe from google.com/maps or maps.google.com reaches the browser without its address and nothing is requested. Scripts from maps.googleapis.com, the Maps JavaScript API, are held back the same way. Google Maps sits in the Preferences category. Here is the Google Maps GDPR setup step by step, with the labels as they appear in the plugin (version 1.0.2):
- Install and activate ClearCrumb from WordPress.org, then go to ClearCrumb → Scanner and click Start scan. The scanner checks up to 50 pages and lists the services it finds.
- Open ClearCrumb → Services & cookies and look for Google Maps. If the scan did not find it, click Add service, type “Google Maps” in Search the library and add it.
- Make sure Wait for consent is on for Google Maps. The status should read Blocked, not Loads without consent.
- Clear your page cache, so visitors get the rewritten page and not an old copy with the live map.
- Go back to ClearCrumb → Scanner and click Run Leak Test to confirm nothing from Google loads before a choice.

The same rewriting covers maps added later by a script, because a small guard script in the page head also catches iframes and scripts that other code inserts after the page has loaded. The full method is in the guide on how to block scripts until consent.
One honest limit applies to plugins and themes that draw their map with the Maps JavaScript API instead of an iframe, such as store locators. ClearCrumb holds back the Google script, but it shows no placeholder card there: the map area stays as the plugin leaves it until the visitor accepts preference cookies. Test those pages after accepting, because some map plugins set up their map only once, on page load.
What does the map placeholder show?
Where an iframe map used to be, ClearCrumb shows a card of the same size, taken from the iframe’s width and height (16:9 when none is set). To be exact about the current version, the card has a dark teal background, and it contains:
- a round icon with a map pin,
- the iframe’s title, or “Google Maps” when the iframe has none,
- the line “Hosted on Google Maps. Loading it shares data with Google.”,
- a green Load map button that loads this one map only, for this page view,
- an underlined Always allow preference cookies button that gives consent for the whole category, so every map and other preferences service loads from then on.
What the card does not show is a preview of the map. YouTube and Vimeo placeholders show the video’s thumbnail, which your server downloads once and stores in your uploads folder. There is no equivalent for maps, so the Google Maps placeholder is a plain card without a picture of the area. For Google Maps GDPR purposes that is fine, since the card sends nothing, as long as your address stands next to it as text, which it should anyway for visitors who never load the map.

Give your map iframe a meaningful title, such as “Map to our shop in Leeds”. The card shows it as its heading, and screen-reader users hear it too. The buttons are real buttons with a visible focus ring, so the card works with a keyboard.
Which Google Maps GDPR alternatives send no data?
If you want something visual before consent, or you would rather not load a live map at all, there are three simple routes. They all fix the Google Maps GDPR concern at the source, because the browser has nothing from Google to fetch.
A plain link to Google Maps
Write your address as text and add a link such as “Get directions on Google Maps”. A link sends nothing until the visitor clicks it, and then they leave your site knowingly. On phones this is often the better experience anyway, because the link opens the maps app with turn-by-turn directions.
A map image you host yourself
A picture of your street, served from your own media library, loads like any other image and contacts nobody. Link it to Google Maps so a click opens the live map. Mind the licence: Google Maps Platform has its own terms on storing map content, so read them before you save a Google screenshot or a Static API image on your server. An image made from OpenStreetMap data is a common choice; the data is under the Open Database License, and the OpenStreetMap Foundation asks for the credit “© OpenStreetMap contributors” with the image. A simple drawn map of your area is another option. Save it as WebP to keep the page fast.
Image above, live map after consent
You can place the image and the link above the blocked map. Visitors without consent see the picture, the address and the placeholder card; visitors who accepted preference cookies see the live map as well. It takes two blocks instead of one, but it gives everyone a useful page.
| Route | Good for | Watch out for |
|---|---|---|
| Plain link | Contact pages, mobile visitors | No visual on the page |
| Self-hosted image | Shops and offices with one location | Image licence and credit line |
| Image plus blocked map | Sites where the live map matters | Keep both in sync if you move |
How do you check your Google Maps GDPR setup?
Do not trust the settings screen alone; test the page the way a new visitor sees it. Three checks cover it:
- Leak Test in the plugin. On the Scanner screen, Run Leak Test loads your pages like a brand-new visitor from the EU who has not clicked anything, and lists every listed service that still fires before consent. Google Maps should not appear under Before consent. The cookie banner leak test guide explains how to read the result.
- Quick outside check. The free Cookie Banner Checker fetches a public page without cookies and lists optional services that are not held back. Run it on your contact page as a quick Google Maps GDPR check.
- Your own browser. Open the contact page in a private window, press F12, open the Network tab and reload without touching the banner. Filter for “google”. Requests to
google.com/mapsormaps.googleapis.comshould not appear until you click Load map or accept.
Repeat the check after you change the theme, the page builder or the contact page itself. A new map widget, or a map pasted into a footer, is the most common way a Google Maps GDPR leak comes back.
Common Google Maps GDPR mistakes
| Mistake | What happens | Fix |
|---|---|---|
| Banner shown, map not blocked | Google receives IPs while the banner waits | Block the map service, not just show a notice |
| Map pasted into the footer | Every page leaks, not just the contact page | Use a link in the footer, the map on one page |
| Old cached page | Visitors still get the live iframe | Clear the page cache after changes |
| Map is the only address | Visitors who refuse cannot find you | Write the address as text next to the map |
| Store locator via JavaScript API | Empty area until consent, no card | Add a note and a link above it |
| Map marked as necessary | Loads for everyone without a choice | Keep it as preferences, as the library sets it |
The footer case deserves a second look. Many themes offer a map in the footer or a site-wide contact bar, which turns one Google Maps GDPR problem into a problem on every page. A text address with a link in the footer, and a blocked map on the contact page, solves it without losing anything useful.
The same thinking applies to other embeds. Video is the next most common one; see YouTube embeds and GDPR for privacy-enhanced mode versus a placeholder.
Frequently asked questions
Is Google Maps GDPR compliant if I use the embed code from Google?
The embed code itself does not ask for consent; it loads from Google as soon as the page opens. Whether your use is lawful depends on how you set it up, so hold the map back until consent or replace it with a link or an image.
Does the Google Maps GDPR question apply if my map sets no cookies?
Yes, it can. The IP address reaches Google with the first request, cookies or not, and the EDPB’s guidelines on Article 5(3) also cover tracking methods that are not cookies. Blocking the request avoids the question.
What happens when a visitor clicks Load map in ClearCrumb?
That one map loads for that page view; nothing is saved. On the next page the card shows again. Always allow preference cookies saves consent for the category, so maps load directly from then on.
Why does the ClearCrumb map placeholder have no preview image?
Thumbnails exist for YouTube and Vimeo only, downloaded once by your server. Maps have no such image yet, so place your address as text, a link or a self-hosted map picture next to the card.
Is a Google Maps link enough instead of an embed?
For many contact pages, yes. A link sends nothing to Google until the visitor chooses to open it, and on phones it opens the maps app with directions.
Summary
The Google Maps GDPR fix is to stop the map from loading before a choice: block it with a consent placeholder, or show a link or a self-hosted image instead, and always write your address as text. ClearCrumb blocks Google Maps iframes and scripts as a preferences service and shows a card with a Load map button, though without a map preview, and the Leak Test confirms nothing slips through. The Maps Embed API documentation shows how Google’s embed works. Facts checked October 2026.