Here is an example of how to test by setting the additionalhtmlhead to add code that sets cookies:
$cfg->additionalhtmlhead = '<script type="text/plain" class="cc-onconsent-social"> $j(function() { document.cookie = "cookiesocial=testing; path=/"; }); </script> <script type="text/plain" class="cc-onconsent-analytics"> $j(function() { document.cookie = "cookieanalytics=testing; path=/"; }); </script> <script type="text/plain" class="cc-onconsent-advertising"> $j(function() { document.cookie = "cookieadvertising=testing; path=/"; }); </script>';
Here is an example of how to test by setting the additionalhtmlhead to add code that sets cookies:
$cfg->additiona lhtmlhead = '<script type="text/plain" class=" cc-onconsent- social" >
$j(function( ) {
document. cookie = "cookiesocial= testing; path=/";
});
</script>
<script type="text/plain" class=" cc-onconsent- analytics" >
$j(function( ) {
document. cookie = "cookieanalytic s=testing; path=/";
});
</script>
<script type="text/plain" class=" cc-onconsent- advertising" >
$j(function( ) {
document. cookie = "cookieadvertis ing=testing; path=/";
});
</script> ';