Even if I accept all, the map doesnt appear.
Hi @vitaj,
The “google is not defined” error means that a file is looking for the Google Maps API, but this API call is blocked by Complianz. This dependency error will cause Google Maps not to work properly.
I have made a custom block script for your Google Map implementation, but as I do not have the same Theme/Google Map implementation as the one used on your website, I haven’t been able to test this yet.
Could you try adding the PHP file attached on the link below as an MU Plugin?
Upload the PHP file to the folder /wp-content/mu-plugins/
.
https://gist.github.com/jarno-vos/d533cfc74e7780beb2b2f59447dc4ca9
Kind regards,
Jarno
Yes, it works great. Thank you.
Can you implement it to complianz in some next version of Complianz? Then, we can use it on other websites.
Hi @vitaj,
I’ve checked your site a few times (incognito mode in Chrome) while the MU Plugin was activated, but noticed that it’s not very consistent yet.
I adapted the previous MU Plugin to additionally let the script “googlemap.min.js” wait for “maplace.min.js”, which I expect to solve this.
Please find it attached here:
https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/woodmart-custom-google-maps.php
Otherwise, the best option would be to additionally use this MU Plugin which reloads the page when consent is obtained. https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/reload-after-consent.php
To use this on your other websites, you can apply these MU Plugins to the other site(s) as well.
We will do our own tests to see if this could potentially be added to the plugin as default available integration.
Kind regards,
Jarno