This plugin may be helpful:
It’d be useful to know if anyone has used it for GDPR purposes, and if they could share their wording and config?