Following variables are good in “gravitoCMPConfig” object scope:
Variable | Description | Version |
---|---|---|
core.settingBtnClassName | Class name for link(s) that will be used to re-open the CMP modal when user wants to review or change consent settings. | 1.0.0 |
core.version | Indicates the version of the configuration. If the version number is changed, CMP UI will be shown again to user allowing to inform and collect new purposes, vendors etc. | 1.0.0 |
core.allowedVendors | Defines allowed OOB vendors (only when CMP is configured to global scope) | 1.0.0 |
core.vendors | List of vendors at https://iabeurope.eu/vendor-list-tcf-v2-0/ | 1.0.0 |
core.purposes | Define purposes and/or stacks you need to enable | 1.0.0 |
core.nonTCFVendors | If you have any, you need to maintain vendor-id mapping by yourself | 1.0.0 |
core.customPurposes | Aka. publisher purposes. If you need consents for purposes separately | 1.0.0 |
core.publisherRestrictions | If you want to override some vendor-originating settings, e.g. force consent for purposes the vendor states the legitimate interest only | 1.0.0 |
style.fonts | Set to fonts your site is using or leave as is to use gravitoFont | 1.0.0 |
style.logoUrl | URL location of your brand logo | 1.0.0 |
style.primaryColor | You can set to your brand’s primary color, it is used on primary buttons, link colors etc | 1.0.0 |
style.secondaryColor | Is used as background of cancel buttons etc., you can customize if needed | 1.0.0 |
core.languageCode | Two digit ISO code for the language CMP is shown | 1.0.1 |
core.purposeOneTreatment | True or false (default), set to true only if the target market has legislative need for enabling this | 1.0.1 |
core.publisherCountryCode | Two digit ISO country code the publisher is residing | 1.0.1 |
core.useTopDomain | Defaults to false, set to “true” if you want the cookie to be shared between subdomains (cookie is set to .domain.xx) | 1.0.2 |
style.consentInputType | Defaults to checkbox, value “toggle” changes the UI | 1.0.3 |
style.useAccordionForPurpose | Default is false, true enables accordion UI for purpose lists on 2nd layer | 1.0.3 |
style.layoutType | Defaults to “2-tabs”, “3-tabs” enables the split on UI between consents and legitimate interests | 1.0.3 |
style.disableConfirmationModal | Default is false, “true” disables the confirmation when user turns consent off | 1.0.3 |
core.googleTcfId | 755 (avoiding to hard-code Google related settings), this enables the personalization consent check. | 1.0.3 |
core.withBackendIntegration | true/false (default) tells the CMP whether the is superwrapper present | 1.0.6 |
core.syncEvents | [“cmpui:closed”,”layer1:opt-in-all”] the list of events that are sent to superwrapper, allowing it to store the consents to backend | 1.0.6 |
style.showScrollBars | true/false, sets the scrollbar visible on 2nd layer | 2.0.1 |
style.scrollBarWidth | if showScrollBars is set to true, this defines the width of the scrollbar, set it to e.g. “10px” | 2.0.1 |
style.showCopyTcStringButton | true/false, enables specific icon at bottom left corner of 2nd layer, click on icon copies TCstring to clipboard for user to send it over email, chat or analyze with external tools. | 2.0.3 |
Within the configuration also some text content can be altered but the content of the message cannot change, ie. CMP has been validated with standard policy-honoring texts and changing the wording might invalidate the CMP against the TCF 2.1 policy (and cause harms to Gravito as CMP vendor).