Rybbit
Embeds

Widget Embeds

Embed a compact live visitor widget on your own site

Widget Embeds let you place a compact live visitor widget on another site with a self-contained iframe. There is no script tag, no JavaScript on your site, and no dependency on the Rybbit tracking script.

Try It

Configure the widget below to see how it'll look. The preview shows live data from demo.rybbit.com.

Variant
Time window
Appearance
Theme
Accent color
Options
Width (px)

Requirements

The widget needs a public read-only data endpoint, so you must enable Widget Embeds on the site. This is separate from Public Analytics. Turning it on only exposes the live count, time series, and top countries to the widget endpoint, not your full dashboard.

Enabling Widget Embeds does not make your dashboard public. Only the data shown in the widget itself (visitor count, per-minute / per-hour / per-day series, top 5 countries) is accessible; no individual sessions, events, pages, or referrers are exposed.

Setup

  1. Open your site in the Rybbit dashboard and click the settings icon.
  2. Go to the Widget Embeds tab.
  3. Toggle Widget Enabled on.
  4. Pick your options: variant, time window, theme, accent color, and display settings.
  5. Copy the generated <iframe> snippet and paste it anywhere on your site.

Variants

Card

A self-contained dashboard card showing the live count, an optional bar chart of users over time, and an optional list of top countries.

OptionValuesDefaultDescription
Time window30 minutes / 24 hours / 7 days30 minWindow the count and chart cover
Bar charton / offonShow a bar chart bucketed per minute / hour / day
Top countrieson / offonList the top 5 countries in the window
Width240-800 px360 pxIframe width; use max-width: 100% for responsive sites

Inline Pill

A compact pill that fits inline with your site's chrome, such as in a header or footer. It shows the pulsing dot, the live count over the last 30 minutes, and the Rybbit wordmark.

Appearance

  • Theme: dark or light. The widget background is transparent, so rounded-corner edges blend into whatever sits behind the iframe.
  • Accent color: any hex color. Used for the pulsing live-indicator dot and the bar-chart bars. Defaults to Rybbit emerald.

Example

<iframe
  src="https://app.rybbit.io/widget/YOUR_SITE_ID?variant=card&theme=dark&minutes=30&chart=true&countries=true"
  style="border: 0; width: 360px; height: 390px; max-width: 100%;"
  loading="lazy"
  title="Live visitors"
></iframe>

If you self-host Rybbit, replace app.rybbit.io with your own domain.

URL Parameters

You don't usually need to build the URL by hand because the dashboard generates the snippet for you, but the widget URL accepts these parameters:

ParameterValuesDescription
variantcard, inlineLayout variant
themedark, lightColor scheme
accent6-character hex, no #, e.g. 10b981Pulse / bar color
minutes30, 1440, 10080Time window in minutes, card variant only
charttrue, falseShow the bar chart, card variant only
countriestrue, falseShow top countries, card variant only

Caching

The widget HTML and the underlying stats endpoint are both cached for 60 seconds on the server, so embedding the widget on a high-traffic page won't put pressure on your Rybbit instance. The visible count refreshes once per minute.