In the past, the WP Google Maps or Google Maps Pro plugin from CodeCabin could unfortunately not be used in conjunction with our Content Blockers.
This has changed. Here we show you how you can set up the WP Google Maps plugin GDPR-compliant with our cookie plugin.
Step 1 - Create Script Blocker
Click the Add New button in the Script Blocker menu.
Set page and search phrase
In the following view you have to select the page in which you have included the form. Add wpgmza, wpgmza_api_call under search phrases. Then click on the Scan button.
After the scan is finished, click the Next button.
Now you have to configure the Script Blocker. Enter google-maps under ID and Google Maps under Name. Also set the status to ON.
After that click the Create Script Blocker button.
Copy code for Content Blocker
After the Script Blocker is created, you have to copy the code for the Content Blocker to the clipboard. We will need it in a moment to set up a working Content Blocker in the second step.
Step 2 - Modify “Google Maps” Content Blocker
In the "Content Blocker" menu item, click on the pencil for the "Google Maps" Content Blocker.
Configure Content Blocker
After that click the Save all settings button.
Step 3 - WP Google Maps Shortcode
In order to block the Google Map correctly, you have to extend the WP Google Map shortcode with the "Google Maps" Content Blocker Shortcode.
To do this, simply copy the shortcode over the corresponding icon.
Now put the Content Blocker shortcode you just copied around the WP Google Maps shortcode so that our Content Blocker can take effect here.
The result subsequently looks as follows.