Title: Google Maps &#8211; ReferenceError: google is not defined..
Last modified: March 27, 2024

---

# Google Maps – ReferenceError: google is not defined..

 *  Resolved [manuelpunzanoinstint](https://wordpress.org/support/users/manuelpunzanoinstint/)
 * (@manuelpunzanoinstint)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/google-maps-referenceerror-google-is-not-defined/)
 * Hello.
 * I am using the directories pro plugin which paints me a map using the shortcode[
   drts-directory-view directory=”les_comes” name=”map”].
   When I activate the compilan
   plugin it is giving me the following Uncaught ReferenceError: google is not defined.
   I have tried to deactivate the service in compilan but still no result.Could 
   you tell me a way to solve it.
 * Greetings and thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-maps-referenceerror-google-is-not-defined%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/google-maps-referenceerror-google-is-not-defined/#post-17532445)
 * Hi [@manuelpunzanoinstint](https://wordpress.org/support/users/manuelpunzanoinstint/),
 * The Complianz plugin does not have an integration with this specific plugin yet.
 * It looks like you have a custom integration applied though; but it is not intended
   for the “Directory Map” plugin, so it doesn’t block all of the scripts correctly
   and the map doesn’t load correctly as a result either.
 * If you disable all Google Maps integrations under _Complianz -> Integrations -
   > Services/Plugins_, and remove any MU Plugins that you added for this purpose,
   this will allow the Map to load without consent.
 * Blocking it will require an integration with the “Directory” plugin specifically,
   which is not currently available in Complianz.
 * Kind regards, Jarno
 *  Thread Starter [manuelpunzanoinstint](https://wordpress.org/support/users/manuelpunzanoinstint/)
 * (@manuelpunzanoinstint)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/google-maps-referenceerror-google-is-not-defined/#post-17547991)
 * Hello Jarnovos,
 * As you instructed, I have removed the custom plugin from MU plugins, but the 
   map still isn’t displaying. I’m still encountering the same error (ReferenceError:
   google is not defined…). It only resolves when I deactivate the plugin.
 * Thank you.
 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/google-maps-referenceerror-google-is-not-defined/#post-17548000)
 * Hi [@manuelpunzanoinstint](https://wordpress.org/support/users/manuelpunzanoinstint/),
 * If you additionally disable the **Advanced Custom Fields** integration under 
   _Complianz -> Integrations -> Plugins_, this will allow the map to load without
   being blocked.
 * Kind regards, Jarno
 *  Thread Starter [manuelpunzanoinstint](https://wordpress.org/support/users/manuelpunzanoinstint/)
 * (@manuelpunzanoinstint)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/google-maps-referenceerror-google-is-not-defined/#post-17553505)
 * Hello Jarno.
 * Thank you very much for your help, now the Google Maps map is displayed.
 * Greetings.

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

The topic ‘Google Maps – ReferenceError: google is not defined..’ is closed to new
replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [manuelpunzanoinstint](https://wordpress.org/support/users/manuelpunzanoinstint/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/google-maps-referenceerror-google-is-not-defined/#post-17553505)
 * Status: resolved