Velohost Velohost

Privacy & Consent

Astro Consent Plugin FAQs

Clear answers explaining how Astro Consent delivers privacy-first cookie consent for Astro sites.

Answers

Why does Astro Consent exist?

To provide a fast, deterministic cookie consent solution without tracking, vendor lock-in, or runtime dependencies.

Does Astro Consent run at runtime?

The integration is applied at build time. Only minimal client-side logic runs to store and read consent.

What consent categories are supported?

Essential, analytics, and marketing. Scripts outside essential must be conditionally loaded.

How is the banner styled?

All styling is controlled via CSS variables in a generated stylesheet that you fully own.

Is there a frontend API?

Yes. A small global API allows reading, setting, and resetting consent state.

Can Astro Consent be completely removed?

Yes. Running `npx astro-consent remove` cleanly removes all integration code and generated files.

Does Astro Consent store data remotely?

No. Consent is stored locally in the browser using localStorage with a configurable TTL.

Is Astro Consent open source?

Yes. Astro Consent is fully open source and released under the MIT license.

Want to try it yourself? Astro Consent plugin or Astro Security plugin or Astro Canonical plugin

Ready to add privacy-first consent to your Astro site?