Embed Our Live CO₂ Counter
Add a live, updating global CO₂ emissions counter to your website or blog with a single line of code. Free to use. No account required. No ads injected.
Quick start
Paste this script tag anywhere in your HTML:
<script src="https://carbonbuddy.co.uk/widget.js"></script>
The widget auto-renders a compact CO₂ counter wherever the script is placed. It runs entirely in the browser — no server requests after load.
Live preview
Widget features
- ✓ Updates every second in real time
- ✓ Lightweight — under 2 KB of JavaScript
- ✓ No cookies, no tracking, no ads
- ✓ Responsive — works on any screen size
- ✓ Dark and light colour scheme options
- ✓ Customisable label text via data attributes
Configuration options
Use data- attributes to customise the widget:
data-theme="light" Use light colour scheme (default: dark)
data-label="false" Hide the "CarbonBuddy" attribution label
data-unit="kg" Show kilograms instead of tonnes
Attribution
The widget is free to use with attribution — a small "CarbonBuddy" link that opens our site. If you need to remove attribution for a paid or ad-free product, contact us.