Script attributes

Attribute Name Description of the attribute Default value/
fallback
data-cookiemanager This is a required attribute that allows the script to recognise itself during scanning. true
data-domain indicate which domain the cookie manager belongs to, this can be useful for test sites that are not yet live. window.location.hostname
data-subdomain-support Subdomains that share cookies with the main domain should have this attribute set to true false
data-lang If you want to set a different language than the one the page is in, you can define it here, either “da” or “en” and language support will come. html lang attribute
data-policy-link A link to a possible privacy policy subpage false
data-repop-element

Determines the position of the repop element, accepts ‘left’, ‘right’ and ‘off’

please note that if set to ‘off’ there must be a link to repop consent somewhere on each subpage, possibly in the footer

left
data-block-content

Determines whether the cookie script should go in and block content other than cookies if users say no to the modal or while we wait for consent

accepts a string containing the following elements “iframe”, “script”, “image”, “fetch”

example: data-block-content=”iframe, script, fetch”

“”
data-use-csp

sets up a Content Security Policy for a domain to block all scripts, it’s quite aggressive, so be careful using it.

example: data-block-content=”true”

false
data-logo

comma separated list with logo url, width, height and position, options for position are left, centre and right, and if that parameter is not set, centre is fallback.

example: data-block-content=”/images/logo.png, 70, 85, left”

false