• Resolved gaillimh

    (@gaillimh)


    Hi there,

    I see Complianz is adding

    <script type=”text/javascript” class=”cmplz-script” src=”https://maps.googleapis.com/maps/api/js?key=redacted&extension=.js”></script&gt;

    ..to my map embed. I don’t want it to block the map at all regardless of consent. I’ve removed Google Maps service to no avail. I’ve also gone through the wizard and removed anything to do with Google Maps and then cleared cache.

    Here’s the page: https://bit.ly/3fSH0jC

    Further, I’m not sure why consent is needed for this map if Google doesn’t set third party cookies in the first place? I’ve analysed the cookies and Google Maps doesn’t set any. I’ve also read your article on the matter but I am unclear.

    I tried this function

    /**
     * Complianz Ignore Google Maps
     */
    function cmplz_edit_iframe_tags($iframe_tags){
        if (($key = array_search('maps.googleapis.com', $iframe_tags)) !== false) {
            unset($iframe_tags[$key]);
        }
    
        return $iframe_tags;
    }
    add_filter('cmplz_known_iframe_tags', 'cmplz_edit_iframe_tags');

    But that is only for an iframe map embed, which I am not using.

    Thanks for your help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Aert

    (@aahulsebos)

    Hi @gaillimh,

    It’s mostly about the API call for Google Maps, which at least contains an IP Address of your users,

    You can disable the integration from Google Maps, under Integrations. If you’re using ACF as well, you can disable this integration as well.

    Let me know if this works,

    regards Aert

    Thread Starter gaillimh

    (@gaillimh)

    Hi Aert. Thanks for the response.

    I understand now about the IP address and Google being vague on GDPR. However, I would like the option to show the map anyway by default.

    Google Maps is already disabled in Integrations. The Connected button is off (grey) and the placeholder active button says N/A, yet Complianz is still holding back the embed.

    Also, even if I wanted to Complainz to hide the embed until consent, it’s not showing a placeholder either, so the user just sees a blank box.

    https://bit.ly/3fSH0jC

    Plugin Author Aert

    (@aahulsebos)

    Hi @gaillimh,

    I still see the API being blocked in your source by Complianz, which is strange if the integration in Complianz is disabled.

    Did you add anything in the script center related to Google Maps?

    Could you update the plugin? We added a parameter ?cmplz_safe_mode=1 so we can debug a bit better.

    regards Aert

    Thread Starter gaillimh

    (@gaillimh)

    Hi Aert,

    I’ve update the plugin now.

    With ?cmplz_safe_mode=1 the map shows.

    There is nothing set in the script centre.

    Plugin Author Aert

    (@aahulsebos)

    Hi @gaillimh,

    I’m a bit baffled that disabling the Google Maps integration doesn’t work, is there a plugin enabled under integrations which is related to Google Maps?

    The parameter exercises the same principle and unblocks all scripts on that page.

    Try disabling reCaptcha as an integration as well, and CF7 if you’re at it.

    Let me know!

    regards Aert

    Thread Starter gaillimh

    (@gaillimh)

    Hi Aert.

    Disabling Advanced Custom Fields and Contact Form 7 in Integrations seems to have resolved the issue. Not sure why they would affect the Google Map embed though?

    Thanks.

    Thread Starter gaillimh

    (@gaillimh)

    I’ve tested this is some of my other sites and it seems the issue is the Advanced Custom Fields integration. If that is enabled, the map will not show. I’m not sure why though. The map embed is hard coded into the template and ACF has nothing to do with it.

    Plugin Author Aert

    (@aahulsebos)

    Hi @gaillimh,

    Thanks for letting us know. Did you enable the ACF integration itself, or did the plugin? The integration is specific for Google Maps, and normally shouldn’t be enabled without Google Maps from ACF.

    Disabling it doesn’t matter in your case, let me know about ACF.

    Thanks again,

    regards Aert

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

The topic ‘How to get Complianz to ignore Google Maps?’ is closed to new replies.