Badges

Add a Simple Analytics badge to your website. It automatically adapts to dark mode, or you can customize the colors to match your site.

Configuration

Enter your domain to show your actual visitor count. Only works for public Simple Analytics websites.

Display last month's sessions on the badge

Advanced color options

Pick a color or type a value. Hex, named colors, and RGB work in the text fields. Your settings are saved in this browser.

Use different colors for light and dark mode

Preview

Badge preview (light mode)
Badge preview (dark mode)

Light and dark versions update as you change the settings.

Embed Code

Copy this code into your website. It automatically shows the right version for light or dark mode.

<a href="https://www.simpleanalytics.com?utm_source=example.com&utm_content=badge" referrerpolicy="origin" target="_blank">
  <picture>
    <source
      srcset="https://simpleanalyticsbadges.com/example.com?mode=dark&counter=false"
      media="(prefers-color-scheme: dark)"
    />
    <img
      src="https://simpleanalyticsbadges.com/example.com?mode=light&counter=false"
      loading="lazy"
      referrerpolicy="no-referrer"
      crossorigin="anonymous"
    />
  </picture>
</a>

Privacy

The embed code includes privacy-preserving attributes to protect your visitors. We don't collect any data through these badges.

Technical details

referrerpolicy="no-referrer" prevents sending referrer data to our image server.

crossorigin="anonymous" ensures no cookies are sent with the request.

loading="lazy" only loads the image when visible, saving resources.

CSP Note: If you use Content Security Policy, add img-src simpleanalyticsbadges.com to your policy.