Versionv1

window.INTA (JSON Schema)

window.INTA is the global JavaScript object Intastellar Consents reads before uc.js runs. Define it in an inline <script> in <head>, then load the CDN script (see Get Started).

Machine-readable schema

Use it with editors, validators, or codegen tools that support JSON Schema Draft 2020-12.

Shape (summary)

PathTypeNotes
policy_linkstring (URI)Privacy policy URL
settingsobjectBanner UI and behaviour
settings.rootDomainstringRoot domain
settings.companystringDisplay name
settings.arrange"ltr" | "rtl"Layout direction
settings.colorstringPrimary colour (e.g. hex)
settings.logostring (URI)Logo URL
settings.designstringe.g. overlay
settings.gtagIdstringGoogle / GA4 ID when applicable
settings.privacy_policystring (URI)Privacy URL (often required for the banner to show)
settings.requiredCookiesstring[]Strictly necessary cookies
settings.keepInLocalStoragestring[]localStorage keys to keep

The schema sets additionalProperties: true on the root and on settings, so extra keys your account or version expects are still valid—validate in your pipeline if you need a closed world.

Example

<script>
  window.INTA = {
    policy_link: "https://example.com/privacy",
    settings: {
      rootDomain: "example.com",
      company: "Example ApS",
      arrange: "ltr",
      color: "#111827",
      logo: "https://example.com/logo.svg",
      design: "overlay",
      gtagId: "G-XXXXXXXXXX",
      requiredCookies: [],
      keepInLocalStorage: [],
    },
  };
</script>
<script src="https://consents.cdn.intastellarsolutions.com/uc.js"></script>

For field semantics beyond this reference, see Customize and the documentation home.

Last updated