Blogger (Google's free blogging platform) lets you edit your theme's HTML directly, so adding CookieScan is straightforward. This guide walks through it step by step.
Before you start
You will need:
- An active CookieScan subscription (view plans)
- Your banner installation code from the CookieScan dashboard (Cookie Banner → Install Code)
- Admin access to your Blogger dashboard
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.
Install via Theme HTML (the only method)
Blogger doesn't have a dedicated Custom Code feature – you add scripts by editing the theme HTML directly.
Step 1 – Back up your theme
- Log into Blogger
- In the left sidebar, click Theme
- Click the arrow next to the Customize button
- Select Backup
- Download the
.xmlfile and keep it safe – you can restore it if anything goes wrong
Step 2 – Open Edit HTML
- In the Theme page, click the arrow next to Customize again
- Select Edit HTML
- You will see the full HTML of your Blogger template
Step 3 – Add the CookieScan script
- Press Ctrl+F (Cmd+F on Mac) to open Find
- Search for
<head> - Click just after the opening
<head>tag - Press Enter to create a new line and paste:
<script src="https://banner.cookiescan.com/js?id=YOUR-COOKIESCAN-ID"></script> - Your code should look like this:
<head> <script src="https://banner.cookiescan.com/js?id=YOUR-COOKIESCAN-ID"></script> ...existing head content... </head>
Important: Blogger uses XHTML, so the script must be properly closed (it is, but don't add any malformed HTML). If you get an "Error parsing XML" message, check for any unclosed tags.
Step 4 – Save
- Click Save (disk icon at the top of the HTML editor)
- If you see "Error parsing XML", revert the change and double-check the script tag is intact and properly formed
Step 5 – Verify
- Visit your blog in a new incognito window
- The CookieScan banner should appear
If you use Google Tag Manager on Blogger
If you've already added GTM to your Blogger theme:
- 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
Verify the installation
- Visit your blog in a new incognito window
- The CookieScan banner should appear
- Open DevTools (F12) → Network tab → filter by
cookiescan - Confirm
banner.cookiescan.comloaded
Or use Verify Installation in your CookieScan dashboard.
What happens next
- CookieScan scans your Blogger blog and detects all cookies (Google Analytics, AdSense, comment system, etc.)
- Discovered cookies appear in Cookie Manager → Unclassified to categorise
- The banner blocks non-essential cookies until user consents
- Every consent decision is logged in Consent Log
Troubleshooting
"Error parsing XML" when saving
- Blogger validates HTML strictly – the script tag must be properly formed
- If you pasted code with smart-quotes (“”) instead of straight quotes (""), Blogger will reject it
- Try pasting from a plain text editor
Banner not appearing
- Check the script is inside the
<head>section, not elsewhere - Clear your browser cache
- View page source (Ctrl+U) and confirm the script is present
AdSense / Analytics still firing cookies
- Google AdSense and Google Analytics load from Blogger's built-in integrations
- Run Cookie Manager → Rescan Domain to detect them
- Categorise AdSense cookies as Marketing and GA cookies as Statistics
- Consider enabling Google Consent Mode v2 in your CookieScan dashboard for better integration
Full documentation
For detailed setup help, see the support guide linked in your CookieScan dashboard, or visit our support guides.