Guide: Blocking Google Maps cookies with biskoui

Introduction

This article is an explanatory guide covering the blocking of integrated maps by Google Maps in the absence of user consent.

Our consent management platform helps you comply with regulations governing the management of geographic maps provided by third-party services.

Google Maps integrations and nFADP

Google Maps is a widely used tool for displaying interactive maps or driving directions on a website. However, its integration raises important data protection issues. In Switzerland, since the introduction of the nFADP on September 1, 2023, displaying a Google Maps map without the user’s prior consent is no longer compliant.

It’s also important to note that the use of Google Maps for legitimate purposes is very difficult to defend, as there are many other services that are much more “Privacy Friendly”.

Why does this happen? When a Google Maps map is integrated into a web page, the user’s IP address is automatically transmitted to Google servers located in the USA or other countries, as soon as the page is loaded, even without any action on the user’s part. The service also uses marketing and analytical cookies to track visitors’ browsing behavior and profile them for advertising purposes.

It is important to remember thatan IP address constitutes personal data. Passing it on, along with other tracking information, without explicit consent violates the New Federal Act on Data Protection (nFADP) in Switzerland as well as the General Data Protection Regulation (GDPR) in Europe.

By blocking the display of maps until you have obtained the user’s consent, your site will comply with the law and reinforce visitor confidence by demonstrating a concrete commitment to their privacy.

How does biskoui block Google Maps?

Biskoui can block your Google Maps integrations to bring your site into compliance with the nFADP and the European GDPR. We have developed a system that will block Google Maps until user consent has been collected. Your Google Matps maps will display as follows to indicate to the visitor that their consent is required:

If the user clicks on “Allow Google Maps”, consent will be activated for Google Maps only. Once clicked, our blocking system will immediately disappear and display the map.

How do I activate Google Maps blocking with biskoui?

A. Add Google Maps service (one-time operation)

  1. Connect to the biskoui console (https://admin.biskoui.ch)
  2. Go to the Services menu and add the Google Maps service
  3. Once the service has been selected, use the default integration mode Managed by biskoui (Assisted) and click Add.
 
B. Enable blocking on your Google Maps (to be performed for each map integration)
Now that the Google Maps service has been added, you’ll need to modify your map integration scripts. Here’s how to do it:
 
When you want to integrate a Google Maps map into your website, Google will provide you with an “iframe” integration script like this one:
				
					<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d686.3123807008138!2d6.6345968696694735!3d46.52296402096014!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x478c2e3147505887%3A0xe131715415e20a90!2sPl.%20de%20la%20Cath%C3%A9drale%205A%2C%201005%20Lausanne!5e0!3m2!1sfr!2sch!4v1754921034890!5m2!1sfr!2sch" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
				
			

To activate the card lock, simply modify the parameter text calling the src= source and replace it with data-src=.

Here’s what it will look like in practice:

Before modifying the source parameter:

				
					src="https://www.google.com/maps/embed?pb=XYZ"
				
			

After modifying the source parameter:

				
					data-src="https://www.google.com/maps/embed?pb=XYZ"
				
			

This small manipulation of the source parameter will allow biskoui to run, or not, the map integrator depending on your visitor’s consent status for Google Maps.


Please note:
It is important to perform this operation for each Google Maps map on your website.

What happens if the user withdraws consent?

The next time the page is loaded, the biskoui blocking system will be reinstated until the user accepts the Google Maps service again.

OpenStreetMaps - Privacy Friendly Alternative to Google Maps

Alternatively, you can opt for OpenStreetMap, a collaborative open source project that allows you to integrate interactive maps without resorting to proprietary services that collect personal data for marketing purposes. Unlike Google Maps, OpenStreetMap does not use marketing cookies, and keeps the collection of user information to a minimum. This more privacy-friendly solution helps you comply with data protection regulations, while offering your visitors a fluid, high-performance mapping experience.

Need help integrating your Google Maps?

Our support team is available at support@biskoui.ch

Headache-free Google Maps with our Biskoui CMP

With Biskoui, Google Maps wait patiently for your visitors’ consent before displaying and depositing cookies. In this way, you retain control over your integrations and protect your visitors’ privacy.

Get 30% off for 3 months with the code: COOKIEMONSTER