Set up so no external solutions are needed.
Or at least make it possible to put something like Google suggests on the button:
<button onclick="allConsentGranted()">Yes</button>
https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced