GDPR Cookie Law JavaScript GDPR Consent Plugin Example

GDPR Cookie Law – JavaScript GDPR Cookie Consent Plugin example – Size of cookie icon

For the best user experience on the demo site, the cookies are automatically deleted. This way you can always see the notification toolbar.
Size of cookie icon
Example code
<link rel="stylesheet" href="">
<script src=""></script>
document.addEventListener('DOMContentLoaded', function () {
    var gdprCookieLaw = new GDPRCookieLaw({
        moreLinkHref: '',
        iconStatus: true,
        iconSize: '24px'
Related options
Peoprty Possible Values Default Value Description
iconStatus true, false true Enable or disable the appearenace of the cookie icon. You have the option to appear or disappear the cookie icon in the pop-up.
iconSize e.g. '24px', '32px', '2em', etc. '24px' The size of the cookie icon.