Documentation

Documentation

Cookie Consent

How to add a GDPR-compliant cookie consent banner to AURA — with styled embed code ready to paste.

How to add a GDPR-compliant cookie consent banner to AURA — with styled embed code ready to paste.

AURA Team

If you use privacy-friendly analytics like Fathom or Plausible, you don't need a consent banner — they don't set tracking cookies. If you use Google Analytics, Facebook Pixel, HubSpot, or any advertising tool, a consent banner is legally required for EU visitors under GDPR and California visitors under CCPA.

Recommended tool: Cookie Yes

Cookie Yes has a free tier, is GDPR and CCPA compliant out of the box, and supports custom styling to match AURA's palette.

Step 1 — Create your Cookie Yes account

Go to cookieyes.com, create an account, and add your domain. Cookie Yes will scan your site and auto-detect cookies in use.

Step 2 — Get your script tag

In the Cookie Yes dashboard, go to Installation. Copy your unique script tag. It will look like this:

<!-- CookieYes Banner -->
<script
  id="cookieyes"
  type="text/javascript"
  src="https://cdn-cookieyes.com/client_data/YOUR_UNIQUE_ID/script.js"
></script>

<!-- CookieYes Banner -->
<script
  id="cookieyes"
  type="text/javascript"
  src="https://cdn-cookieyes.com/client_data/YOUR_UNIQUE_ID/script.js"
></script>

<!-- CookieYes Banner -->
<script
  id="cookieyes"
  type="text/javascript"
  src="https://cdn-cookieyes.com/client_data/YOUR_UNIQUE_ID/script.js"
></script>

Step 5 — Block tracking scripts until consent

Any tracking scripts (Google Analytics, Pixel, etc.) must load after consent is given. In Cookie Yes, go to Cookie Management → add each cookie and assign it a category (Analytics, Marketing). Cookie Yes will automatically block and unblock the relevant scripts based on the visitor's choice.

Testing

Open your live site in an incognito window. The banner should appear immediately on first load. Accept, decline, and verify that your analytics tool starts or doesn't start tracking accordingly.

Create a free website with Framer, the website builder loved by startups, designers and agencies.