Embed

Live badges

Drop a live-updating SVG on your site, README, or blog. Renders server-side — no JavaScript to load, no cookies, zero performance cost.

Find it at Settings → Tracking Script.

Live visitors

Pulsing realtime count plus today's visitors. Defaults when no variant is specified.

Requires Public Dashboard to be enabled in Settings.

HTML
<img src="https://perchlens.com/api/badge/cv_YOUR_SITE_ID.svg" alt="PerchLens analytics" width="160" height="42">

AI traffic share

What percentage of your sessions come from AI engines. Perfect for blog sidebars in the AI era.

Requires Public Dashboard to be enabled in Settings.

HTML
<img src="https://perchlens.com/api/badge/cv_YOUR_SITE_ID.svg?variant=ai" alt="PerchLens analytics" width="160" height="42">

Total visitors

Rolling 30-day visitor count. Clean, no chrome — works in any footer.

Requires Public Dashboard to be enabled in Settings.

HTML
<img src="https://perchlens.com/api/badge/cv_YOUR_SITE_ID.svg?variant=total" alt="PerchLens analytics" width="160" height="42">

Powered by

Pure attribution, no data. Works for any site — no public dashboard toggle required.

HTML
<img src="https://perchlens.com/api/badge/cv_YOUR_SITE_ID.svg?variant=powered" alt="PerchLens analytics" width="160" height="28">

How badges work

  • Server-rendered SVG — no JS, no client tracking added to your site.
  • Cached for 30–300 seconds depending on variant (realtime is fastest).
  • Only renders with data when the site has Public Dashboard enabled; otherwise it falls back to a clean placeholder so your embed never breaks.
  • GitHub READMEs work too — use the full URL in markdown: ![analytics](https://perchlens.com/api/badge/cv_xxx.svg)
  • White-label users can replace the "perchlens.com" attribution via Settings → White-label.