Drupal module: consent_popup Read more about Drupal module: consent_popup TL;DR: You can read the code here: https://github.com/wasya-co/consent_popup