• Hi,

    I have some widgets on my website that I would like to not load until a visitor clicks the GDPR consent button. I have the Widget Logic plugin, which uses WP conditional tags and I think can theoretically filter a widget based on the presence of a cookie, but I don’t know how it would need to work. I assume one would need to set a conditional tag to only show the widget if the GDPR cookie is set, but I’ve no idea how to actually implement that? Any suggestions?

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter Ate Up With Motor

    (@ate-up-with-motor)

    It looks like Widget Logic could take the is_allowed_cookie conditional tag, but I’m not sure how to set that.

    The issue is that the widget contains embedded content (a PayPal button), which isn’t itself cookie-based, but has privacy implications because the button loads from paypalobjects.com rather than locally. This is explained in my privacy policy, but I’d like to not load that widget until the visitor clicks okay on the GDPR privacy banner.

Viewing 1 replies (of 1 total)
  • The topic ‘Consent-based widget’ is closed to new replies.