Weebly offers a built-in Embed Code element and per-page header code settings. For CookieScan, the best approach is to add it to the site-wide Header Code via the Settings area.
Before you start
You will need:
- An active CookieScan subscription (view plans)
- Your banner installation code from the CookieScan dashboard (Cookie Banner → Install Code)
- A Weebly Pro plan or higher (Header Code requires paid plan)
- Site admin access
The install code looks like this:
<script src="https://banner.cookiescan.com/js?id=YOUR-COOKIESCAN-ID"></script>
Replace YOUR-COOKIESCAN-ID with the code from your dashboard.
Method 1: Site-wide Header Code (recommended)
Step 1 – Open Site Settings
- Log into your Weebly account
- Select the site you want to edit
- Click the Settings tab at the top
- In the left sidebar, click SEO
Step 2 – Add script to Header Code
- Scroll down to Header Code
- Paste your CookieScan script:
<script src="https://banner.cookiescan.com/js?id=YOUR-COOKIESCAN-ID"></script> - Click Save at the top right
Step 3 – Publish your site
- Click Publish (top right of the editor)
- Wait for the publish to complete
Step 4 – Verify
- Visit your site in a new incognito window
- The CookieScan banner should appear
Method 2: Per-page Header Code
If you only want CookieScan on specific pages (not recommended for compliance):
- Open the page in the Weebly editor
- Click Pages in the top menu
- Select the page you want, then click SEO Settings
- In Header Code, paste your CookieScan script
- Save and publish
For compliance purposes, cookie banners should appear on every page. Always use the site-wide Header Code (Method 1) unless you have a specific reason to limit it.
Method 3: Install via Google Tag Manager
If you have GTM already installed on your Weebly site:
- In CookieScan, open Cookie Banner → Install Code and switch to the Google Tag Manager Install tab
- Copy your CookieScan ID
- In GTM, go to Templates → Search Gallery and add the CookieScan template
- Create a tag using the template, paste your ID
- Trigger: Consent Initialization – All Pages
- Submit and publish GTM
Disable Weebly's built-in cookie notice (if enabled)
Weebly has a basic cookie notice feature. Disable it so CookieScan handles consent:
- Go to Settings → General
- Find the Cookie Notice option (if shown)
- Turn it off or leave it disabled
Verify the installation
- Visit your site in a new incognito window
- The CookieScan banner should appear within a second
- Open DevTools (F12) → Network tab → filter by
cookiescan - Confirm
banner.cookiescan.comloads
What happens next
- CookieScan scans your Weebly site and detects all cookies (Weebly's built-in analytics, any integrations)
- Discovered cookies appear in Cookie Manager → Unclassified – categorise them
- The banner blocks non-essential cookies until the user consents
- Every decision is logged in Consent Log
Troubleshooting
Banner not appearing
- Verify you're on a Weebly paid plan (Pro or higher) – Header Code requires this
- Check you saved AND published – Weebly requires both
- Clear your browser cache
- View page source and search for
cookiescanto confirm the script is in the<head>
Script appears but some pages don't show the banner
- Make sure you're using the site-wide Header Code, not a per-page one
- Re-publish the site to refresh all pages
Weebly's own cookies still loading
- Weebly sets some essential session/session-state cookies which should be categorised as Necessary
- Any analytics/marketing cookies can be categorised appropriately so the banner blocks them
- Run Cookie Manager → Rescan Domain to refresh the list
Full documentation
For detailed setup help, see the support guide linked in your CookieScan dashboard, or visit our support guides.