• Resolved MartinW2

    (@martinw2)


    I am preparing a page which uses the Leaflet Map plugin incl. extensions to show a map served by openstreetmap.
    The problem is that Openstreetmap is assigned to ‘marketing’ category, which will ask for marketing consent in general when a map is displayed. I do not think this is necessary according to the data security policy of openstreetmap (other than Google Maps, where merketing probably applies well).
    I tried to add a dedicated service category “openstreetmap” via own mu-plugin and tried to modify the category set in the complianz coding for osm plugin and osm service integration. Unfortunately, the placeholder block still says “allow marketing” a.s.o.
    Is there a ‘right’ (and hopefully easy) way to assign OpenstreetMap to an own (non-marketing) category in Cookie Banner and Cookie Policy?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @martinw2,

    The easiest way, which would also avoid the need to configure any custom integrations, would be to enable “Consent per Service” in the Complianz Wizard under Consent > Services > “Do you want to use ‘Consent per Service?”.

    This will allow you to obtain consent for the OpenStreetMaps service specifically by clicking its’ placeholder, instead of having to accept the entire “Marketing” category as well.

    Kind regards, Jarno

    Thread Starter MartinW2

    (@martinw2)

    Hi @jarnovos, I have now tried this setting again (I think i tried that before), but apart from having a new category ‘preferences’ (translated to german “Vorlieben”, which better should be “Pr?ferenzen” in this case), there is still no way to select ‘OpenStreetMaps” or similar in the frontend. The map (without displaying a placeholder) is blocked until ‘Marketing’ is allowed either via the cookie popup or in Cookie-policy document. Only in the backend I have OpenStreetMap as a separate service which I can select or deselect in services panel. But from a frontend view – no difference.
    Any idea? Should “OpenStreetMap” become visible despite of the ‘marketing’ assignment in wp-content/plugins/complianz-gdpr/integrations/services/openstreetmaps.php ?

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @martinw2,

    With Consent per Service activated, you will now be able to click the OpenStreetMaps placeholder which will only provide consent to that specific service.

    And when you re-open the Cookie Banner upon doing so, you will find that the Marketing category had not been activated by consenting to OpenStreetMaps (but of course, consenting to “Marketing” in the Cookie Banner would still accept OpenStreetMaps).

    You will find the services that you had consented to, by visiting the Cookie Policy that Complianz generates for you, and revoke individual service consent by unticking the checkboxes in the Cookie List.

    Kind regards, Jarno

    Thread Starter MartinW2

    (@martinw2)

    I am currently digging into this topic. This extra mu-plugin is a minimum required to have it working with leaflet map extensions plugin: complianz-integrations/Google Maps/leaflet-maps.php
    This mu-plugin together with wrapping cmplz-consent-area shortcodes the basic functionality is given.
    However, I still would like to avoid the ‘Marketing’ category at all, as it is not appropriate for planned charitable no-profit page to appear (even if not selected). So far, I did not find a possibility to do this. Best way still would be to have an own category for Openstreetmap (which I managed to appear in the cookie popup via modifed complianz-integrations/social-media-category.php mu-plugin etc.) – but even if a adjust all openstreetmap marketing references in the plugins to the new category, it still doesn’t work. Any hints are highly appreciated. Does not need to be an mu-plugin, can also be part of own plugin or child theme functions.php if required.
    Best regards,
    Martin

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @martinw2,

    If you’re blocking the map with the integration, you won’t additionally have to wrap it in Consent Area shortcodes as well, as the content would already be blocked by that integration.

    Can you help me understand why activating Consent per Service as described earlier would not suffice for your use case? Enabling Consent per Service allows you to granularly obtain consent for OpenStreetMaps by clicking the placeholder, without consenting to the Marketing category itself. No further filters/customization required.

    Kind regards, Jarno

    Thread Starter MartinW2

    (@martinw2)

    Hi @jarnovos,
    As stated before,?I still would like to avoid the ‘Marketing’ category AT ALL, as it is not appropriate for planned charitable no-profit page to appear (EVEN IF NOT SELECTED). But no matter what I seem to do, it is always part of the list of categories displayed in the cookie popup, probably because Openstreetmap is assigned to that category, although I am using Consent per Service. For this It does NOT matter if it is required for the user to allow or not – it simply should not be in the list at all. Visitors will ask themselve why this website has a Martketing category for, as it should not have one. It is not appropriate.
    Wrapping in Consent Area Shortcodes is required because I am using the “Extensions for Leaflet Map”-Plugin as well, and these shortcodes have also to be delayed unless the main map is approved.
    Kind regards,
    Martin

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @martinw2,

    The Marketing category becomes activated due to the answers provided during the Wizard, although you can always disable it if desired in your case, by disabling the Marketing slider under Complianz > Cookie Banner > Categories.

    And as the Leaflet Map integration already blocks the Leaflet Map + Extensions shortcode, you won’t additionally have to wrap these in the consent area shortcode as well.

    With Consent per Service activated as well, this will leave you with banner without “Marketing” category and a blocked Leaflet (+ Extensions) Map, that when consented to, only accepts the OpenStreetMap service.

    Here’s my example: https://leaflett.instawp.xyz/map/

    Kind regards, Jarno

    Thread Starter MartinW2

    (@martinw2)

    Hi @jarnovos,
    Thank you for the example provided. Indeed it shows me that leaflet map incl. extensions are properly blocked as a service – without enforcing the marketing category.
    I have some javascript functions that need to run before and after map creation that can only run sucessfully once openstreetmap has been allowed . I assume that’s why I was required to wrap everything with cmplz-consent-area shortcodes as well and wasn’t able to reproduce this solution.
    Is there a way to make a complz-consent-area assigned to a service and not a category?
    Did you have to use any mu-plugins in your example?
    Thanks anyway for the suppport you already gave so far.
    I have a working solution now for the page that is going to go live within the next weeks. But I may use this again in other context so still interested in a better solution.
    Thank you,
    Martin

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Not using “marketing” for Openstreetmap?’ is closed to new replies.