Title: Google Maps without cookie.
Last modified: October 28, 2018

---

# Google Maps without cookie.

 *  Resolved [EnFi](https://wordpress.org/support/users/enfi/)
 * (@enfi)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/google-maps-without-cookie/)
 * Hello,
    how are you? Your plugin is amazing and works really well. Anyway, due
   to the GDPR I would like to stop Google maps to install cookies on the user browser,
   and I’ve read that is possible by changing a javascript code usually located 
   in the header of the website.
 * This is the code I should replace <script type=”text/javascript” src=”[https://maps.google.com/maps/api/js?sensor=true”></script&gt](https://maps.google.com/maps/api/js?sensor=true”></script&gt);
 * with this:
    <script type=”text/javascript” src=”[http://maps.googleapis.com/maps/api/js?v=3.5&sensor=true”></script&gt](http://maps.googleapis.com/maps/api/js?v=3.5&sensor=true”></script&gt);
 * Can you please tell me how can I do that with your plugin?
    Thank you very much,
   Kind regards,

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/google-maps-without-cookie/#post-10824633)
 * G’day Enfi,
 * That information doesn’t sound right. For one thing, `sensor` was removed some
   time ago and now generates a warning in the browser console if you use it. For
   another, the current release version of the Google Maps JavaScript API is 3.32,
   not 3.5. Even the weekly (development) version is only 3.34. Where did you read
   this information?
 * Also, why do you think that Google Maps is setting cookies? It might be the case
   with an iframe embed, but in my testing I have not seen this with the JavaScript
   API.
 * cheers,
    Ross
 *  Thread Starter [EnFi](https://wordpress.org/support/users/enfi/)
 * (@enfi)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/google-maps-without-cookie/#post-10830055)
 * Hi Ross,
    thanks for your message. Well, I’ve read in an Italian website related
   to GDPR and cookie regulation. I don’t put a link but I can paste the text, you
   should translate it with Google in case. It says that every map installs usually
   2 cookies “NID” and “PREF” and the solutions to avoid that. Thank you very much
   for your collaboration. Kind regards, Enfi
 * *** Text below ***
 * Google Maps
    Ogni mappa incorporata da Google Maps normalmente installa sul browser
   dei visitatori due cookie di Google nominati “NID” e “PREF”. Una versione di 
   Google maps senza cookie* è disponibile grazie al dominio`maps.googleapis.com`.
 * Per attivarla occorre sostituire questo codice (tipicamente nella sezione head
   delle tue pagine web):
 * <script type=”text/javascript” src=”[https://maps.google.com/maps/api/js?sensor=true”></script&gt](https://maps.google.com/maps/api/js?sensor=true”></script&gt);
   
   Con questo:
 * <script type=”text/javascript” src=”[http://maps.googleapis.com/maps/api/js?v=3.5&sensor=true”></script&gt](http://maps.googleapis.com/maps/api/js?v=3.5&sensor=true”></script&gt);
 * *ATTENZIONE: secondo i test recentemente effettuati purtroppo questo è vero nel
   caso in cui l’utente non sia già loggato a Google in quel momento. Nel qual caso
   viene comunque installato il cookie “NID”. Tuttavia il cookie NID, a giudicare
   dalla descrizione di Google, viene cancellato al termine della sessione e non
   sembra essere un cookie di profilazione. E’ una situazione border-line perché
   pur essendo un cookie di terza parte (di Google) non è profilante ed è installato
   solo se il visitatore ha già un account su Google. Quindi occorre fare una scelta
   ed assumersene la responsabilità.
    La soluzione più sicura consiste nel sostituire
   la mappa con una immagine (per esempio uno screenshot della mappa interattiva)
   e magari un link alla mappa di Google maps.
 *  Plugin Author [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/google-maps-without-cookie/#post-10832418)
 * G’day Enfi,
 * Rather old information there (and incorrect). Those cookies don’t seem to be 
   being set anymore. I tested in multiple browsers, and only one browser already
   had those cookies (they have long expiry dates). Clearing cookies and revisiting
   the test pages, they didn’t come back.
 * The information they’re giving on your GDPR website is wrong. There is no version
   3.5 of the API, and sensor has long been deprecated and will trigger a warning
   in the browser console. Disregard their advice.
 * cheers,
    Ross
 *  Thread Starter [EnFi](https://wordpress.org/support/users/enfi/)
 * (@enfi)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/google-maps-without-cookie/#post-10834270)
 * Thank you very much for your reply.
    Ok, perfect. So Google Maps doesn’t set 
   any cookies? I need to be sure just because some European countries ask for the
   block of cookies before user acceptation. Thank you very much Kind regards, Enfi
 *  Plugin Author [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/google-maps-without-cookie/#post-10836127)
 * G’day Enfi,
 * No worries. Yes, Google did once set those cookies, but doesn’t seem to any more(
   and not for some time now).
 * Google has a page detailing its compliance with GDPR and other privacy regulations.
   Sadly, it’s impenetrable legal speak, but for what it’s worth:
 * [https://cloud.google.com/maps-platform/terms/maps-controller-terms/](https://cloud.google.com/maps-platform/terms/maps-controller-terms/)
 * cheers,
    Ross

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Google Maps without cookie.’ is closed to new replies.

 * ![](https://ps.w.org/wp-flexible-map/assets/icon-256x256.png?rev=2590627)
 * [Flexible Map](https://wordpress.org/plugins/wp-flexible-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-flexible-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-flexible-map/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-flexible-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-flexible-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-flexible-map/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [webaware](https://wordpress.org/support/users/webaware/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/google-maps-without-cookie/#post-10836127)
 * Status: resolved