Title: Consent-based widget
Last modified: August 6, 2018

---

# Consent-based widget

 *  [Ate Up With Motor](https://wordpress.org/support/users/ate-up-with-motor/)
 * (@ate-up-with-motor)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/consent-based-widget/)
 * 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](https://wordpress.org/support/users/ate-up-with-motor/)
 * (@ate-up-with-motor)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/consent-based-widget/#post-10562738)
 * 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.

 * ![](https://ps.w.org/gdpr/assets/icon.svg?rev=1837142)
 * [GDPR](https://wordpress.org/plugins/gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr/reviews/)

## Tags

 * [cookies](https://wordpress.org/support/topic-tag/cookies/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * 1 reply
 * 1 participant
 * Last reply from: [Ate Up With Motor](https://wordpress.org/support/users/ate-up-with-motor/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/consent-based-widget/#post-10562738)
 * Status: not resolved