Support » Plugin: WP Google Maps » Deque google api script from frontend

  • Resolved marianssen

    (@marianssen)


    Hi,

    according the the recent EU court ruling, a user has to actively agree with the use of cookies on a website. I’m using a 3rd party cookie plugin, where the user can decide to accept or decline cookies.

    I’m using the pro version of your plugin, and even though there is a GDPR section, it is not very user-friendly with other cookie plugins – the user would have to click twice (3rd party cookies and then click again on your GDPR notice to show google maps).

    Is it possible to somehow deque the google maps API from frontend (so no cookies would load at first), and then load it, when the user clicks accept throught a 3rd party cookie plugin?

    Regards,
    Marian

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author perryrylance

    (@perryrylance)

    Hi Marian

    Thank you for getting in touch and thank you for your feedback.

    We’ll be integrating with Borlabs Cookie plugin in the near future.

    If you had a specific 3rd party cookie plugin in mind, we can potentially look at fast tracking that.

    Does that help?

    Kind regards
    – Perry

    Hi Perry,

    I’m using the GDPR Cookie Compliance. The plugin has an option to load additional script after clicking on Agree in the cookie notice. So, my thinking was, I could deque the google maps frontend script until the users clicks accepts. Only then it would be loaded within the plugin GDPR Cookie Compliance.

    I think ton of users would even appreciate this kind of option inside of the plugin (not only integration with a specific cookie plugins), since this is a EU requirement and your current solutions is incorrect from the UX perspective.

    Regards,
    Marian

    Plugin Author perryrylance

    (@perryrylance)

    Hi @marianssen

    The only mechanism for this at the moment is the built in one, you’d have to engineer your own system using hooks if you need something immediate.

    Thanks again for your feedback, we’ll definitely be improving this module in the near future. The current module meets legal requirements, but we agree that the UX could be improved.

    Is there anything else we can help you with?

    Kind regards
    – Perry

    marianssen

    (@marianssen)

    Hi @perryrylance,

    could you point me to some of the hooks I could use?

    Regards,
    Marian

    Plugin Author perryrylance

    (@perryrylance)

    Hi Marian

    I’d recommend you use script_loader_tag, our plugin enqueues the API with the handle wpgmza_api_call.

    Does that help?

    Kind regards
    – Perry

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.