Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Cookiebot Drupal 7 template.php
<?php
function theme_preprocess_html(&$variables)
{
$cookiebot = array(
'#type' => 'markup',
'#markup' => '<script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="00000000-0000-0000-0000-000000000000" type="text/javascript" async></script>' . "\n"
);
drupal_add_html_head($cookiebot, 'cookiebot_banner');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.