DEV Community

Cover image for Add a GDPR Cookie Banner in 2 Minutes Without Paying a Fortune
Felix A. Schultz
Felix A. Schultz

Posted on

Add a GDPR Cookie Banner in 2 Minutes Without Paying a Fortune

Every website that uses analytics or tracking needs a consent banner under GDPR. The problem? Most solutions are either bloated, overpriced, or designed for giant corporations.

Intastellar Consents is a free alternative. It’s not tied to a CMS, doesn’t slow down your site, and takes minutes to set up.

Why another cookie banner?

Because you shouldn’t have to:
• Pay €500/month for something as boring as compliance.
• Drown in documentation to get started.
• Spend days coding a “simple” banner from scratch.

and it by default supports:
✅ Google Consent Mode v2
✅ Meta Consent Mode
✅ HubSpot Consent Mode
✅ Microsoft Consent Mode

No add-ons. No hidden switches. It just works.


Quick Start (Plain HTML)

Drop this snippet into your site’s <head>:

<script>
        window.INTA = {
            policy_link: "[Link to a valid privacy policy. (example.com/privacy-policy or example.com/privacy)](Required)",
            settings: {
                rootDomain: "[Your main website domain, when you´re using multiple domains] (Required)",
logo: “[Link to your logo]”
            }
        }
    </script>
    <script src="https://consents.cdn.intastellarsolutions.com/uc.js"></script>
Enter fullscreen mode Exit fullscreen mode

Refresh your site and your banner is live. Done.


Using it in React (Workaround)

There isn’t a native React package yet. But you can still use it the same way you’d embed Google Analytics: by adding the script directly.

In Create React App, you can add it to your public/index.html:

<script>
        window.INTA = {
            policy_link: "[Link to a valid privacy policy. (example.com/privacy-policy or example.com/privacy)](Required)",
            settings: {
                rootDomain: "[Your main website domain, when you´re using multiple domains] (Required)",
                logo: “[Link to your logo]”
            }
        }
    </script>
    <script src="https://consents.cdn.intastellarsolutions.com/uc.js"></script>
Enter fullscreen mode Exit fullscreen mode

Why use this?
• Free forever for basic banners.
• Lightweight and fast.
• Works with Google Consent Mode v2.
• Takes minutes, not hours.

👉 Try it here: https://www.intastellarsolutions.com/solutions/cookie-consents

Top comments (0)