Embedding Google Maps on your website: GDPR-compliant
Embedding Google Maps on your website in line with the GDPR: why the normal embed is a problem and which solutions exist, from a link to a two-click map.

A map on the contact page is handy: customers see right away where your business is and can plan the route with one click. Most websites simply embed Google Maps for this. But that is exactly what can be a data protection problem. Here you will learn why and which solutions exist. The legal references are to German and EU law. Not legal advice.
What happens with the normal embed
In Google Maps you can copy an HTML code via "Share" and "Embed a map" and paste it into your website. This code loads the map in an embedded frame directly from Google. That happens as soon as someone opens the page, not only when they use the map.
Google necessarily receives the visitor's IP address, because no server can send data without it. Depending on the settings, information may also be stored on or read from the visitor's device.
What the law says
Two rules matter here:
- § 25 TDDDG: storing or reading information on the visitor's device, for example via a cookie, is only allowed with consent. The exception is what is strictly necessary for a service the user has explicitly requested. Someone who only wants to read your contact details has not explicitly requested the map.
- GDPR: the IP address counts as personal data. Passing it on to Google needs a legal basis.
How strictly courts see this is shown by a ruling on Google Fonts, a similar case. On 20 January 2022 the Regional Court Munich I decided (case 3 O 17493/20) that passing the IP address to Google without consent was unlawful. The website operator had to pay the visitor 100 euros in damages. The court pointed out that the fonts can also be used without a connection to Google. It was a first-instance judgment and applies to this individual case. Afterwards many cease-and-desist letters followed that referred to it. More in Host Google Fonts locally.
For Google Maps there is no solution that works without Google, because the map simply comes from Google. So the rule is: only load the map when the visitor explicitly wants it.
Solution 1: just a link
The simplest solution is no embedded map at all but a link such as "Open route in Google Maps". In Google Maps you create it via "Share" and "Copy link". Nothing goes to Google when your page loads. Only whoever clicks the link switches to Google Maps.
Next to the link, the address should be shown as text. Most phones recognise it and offer to open it in a map app.
Solution 2: map image plus link
Instead of the real map you show an image of a map section loaded from your own server and link it to Google Maps. Visually that is almost as good as an embedded map.
Pay attention to the rights to the map image. A simple screenshot from Google Maps is not automatically free to use. Maps from OpenStreetMap may be used if the source is credited, for example with "© OpenStreetMap contributors". A simple, self-drawn directions sketch is another option.
Solution 3: two-click map
In place of the map there is first a placeholder with a short notice, for example: "Loading the map transfers data to Google. More in the privacy policy." Below it a button "Load map". Only after the click is the Google map embedded.
That way everyone who really wants to see the map gets the full function. Everyone else is not passed on to Google at all. If you like, the website can remember the decision. What matters is that the notice before the click is clear and understandable.
Solution 4: through the cookie banner
If your website has a consent banner anyway, Google Maps can appear there as its own category. The map then only loads if the visitor has agreed. Without consent, a placeholder with a link should appear in its place, not just an empty area. Whether you need a banner at all is covered in Cookie banners: when are they required?.
Which solution fits?
- For most small businesses, solution 1 or 2 is enough: address as text, a map image or a link to Google Maps. That is fast, privacy-friendly and works without a banner.
- If the interactive map is important, for example with several locations, the two-click map is a good way.
- In any case, Google Maps belongs in the privacy policy as soon as the map can be embedded.
Another advantage of solutions 1 and 2: the page loads faster because no heavy map is loaded with it.
Also important: the Google Business Profile
Many customers search for your business directly in Google Maps anyway. There you appear with your Google Business Profile. If it is well maintained, customers find your address and route even without a map on your website. How that works is explained in Set up a Google Business Profile.
Frequently asked questions
Is it enough to mention Google Maps in the privacy policy?
Mentioning it is necessary but does not replace consent where consent is needed. The privacy policy informs, consent permits.
Is an embedded OpenStreetMap map the solution?
Not automatically. An embedded OpenStreetMap map usually also loads its map tiles from third-party servers, and the IP address goes there too. It only becomes privacy-friendly when the map comes from your own server or only loads after a click.
What does embedding Google Maps cost?
Embedding via "Embed a map" is free. According to Google, the Maps Embed API, which developers use with their own key, is also free and has no usage limit.
I have already embedded the map the normal way. What now?
Replace it with one of the solutions above and check your privacy policy. If you are unsure, get advice from an expert.
Sources
- § 25 TDDDG (German): www.gesetze-im-internet.de/ttdsg/__25.html
- Google Maps, share and embed maps: support.google.com/maps/answer/7101463
- Maps Embed API: developers.google.com/maps/documentation/embed/get-started
- Regional Court Munich I, judgment of 20 January 2022, 3 O 17493/20, summary by the chamber of commerce (German): www.ihk.de/bergische/recht-und-steuern/wettbewerbsrecht/google-fonts-5646176
- OpenStreetMap, copyright and licence: www.openstreetmap.org/copyright
Written by Devrim Yilmaz. Under the name DEVOSWEB I build websites for local businesses in Dietenhofen, Ansbach district, Germany. Hand-built, with care for privacy, Google and security. Meetings in person in the region or online. More about me