← All integrations
Vanilla JS logo
Deployment Platform ★ Native API

Vanilla JS

Works with any HTML page, static site generator, or JavaScript framework. Drop it in before </head> and you're done.

The Vanilla JS integration is the foundation everything else is built on. Two script tags, one for your configuration, one for the CDN-hosted consent engine, are all it takes to bring GDPR, CCPA, LGPD, POPIA, and PDPA compliance to any website.

How to set up

1

Add the configuration script

Place this first script tag at the very top of your <head>. Set your policy_link and rootDomain at minimum. Browse the full settings reference in the developer docs.

index.html
<script>
window.INTA = {
  policy_link: "https://yourdomain.com/privacy-policy",
  settings: {
    rootDomain: "yourdomain.com",
    // Full reference: inta.dev/docs/cookie-banner/v1
  }
};
</script>
2

Load the consent engine

Add the CDN script immediately after the config block. It loads asynchronously so it never blocks your page render.

index.html
<script src="https://cdn.intastellar.dk/uc.js"></script>
3

That's it

The banner appears on first visit. Consent state is stored per-visitor. Google Consent Mode v2 Advanced, Microsoft Clarity & UET, HubSpot Cookie API, and VWO all activate automatically based on what the visitor accepts.

What you get

  • Works with React, Vue, Angular, Svelte, Next.js, Nuxt, Astro, and any other stack
  • Under 5 KB loaded async, zero impact on Core Web Vitals
  • Served from a global CDN with 99.9% uptime SLA
  • All native consent framework integrations activate automatically
  • No build step, no bundler, no npm package required
  • Consent state persists across page loads and subdomains

Ready to connect Vanilla JS?

Two script tags and this integration is live. No signup required.