Cookie banner
Cookie banner gives your website a clear consent prompt with equal choices: accept, reject, or manage preferences.
What it is for
Use it when your site loads optional scripts for analytics, marketing, or other tools that should wait for consent. Sitebase stores the visitor's choice in a first-party consent cookie.
Script gating
Mark optional scripts as plain text and assign a consent category. Sitebase activates them only after the visitor gives permission for that category.
<script type="text/plain" data-sb-consent="analytics" src="https://analytics.example/script.js"></script>
Visitor controls
Visitors can accept all, reject all, or open preferences. Preferences default to off. You can also show a small badge so people can change their choice later.
Script-only feature
Cookie banner is script-only because consent needs to live on your own domain and control scripts on the host page. It cannot run as an iframe embed.
Works with legal pages
Pair Cookie banner with Privacy & legal pages to host your cookie policy, privacy policy, and terms in one place.
Next: Privacy & legal pages