> ## Documentation Index
> Fetch the complete documentation index at: https://tinyanalytics.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Embed an Analytics Dashboard

> Put a read-only tinyanalytics dashboard inside your own site with an iframe. Build the embed snippet in your site settings, choose a theme, and copy it in.

Embedding puts a read-only tinyanalytics dashboard **inside your own page** with an `<iframe>` — for an internal wiki, a client portal, or a public "stats" page. You build the snippet in your site's embed settings, pick how it looks, and paste one tag into your HTML.

## Build the embed snippet

Open your site's settings and find the **Dashboard** embed tab. It generates a ready-to-paste `<iframe>` snippet with a live preview:

* For a **public** site, the snippet embeds the open share link — no key needed.
* For a **private** site, generate a **private link key** and the snippet embeds the keyed link. Regenerate or revoke the key any time to control access.

```html theme={null}
<iframe
  src="https://your-tinyanalytics-host/share/YOUR_SITE_ID/YOUR_KEY"
  width="100%"
  height="800"
  style="border:0"
></iframe>
```

<Note>
  The embed shows the same read-only dashboard as a [public dashboard](/docs/public-analytics-dashboards) — viewers can browse reports and change the date range, but can't edit anything or reach your settings or account.
</Note>

## How do I make the embed match my page?

The settings tab lets you tune the embed to fit where it lives:

* **Theme** — light, dark, or follow the viewer's system setting. An embedded theme never changes your own dashboard's theme in the same browser.
* **Hide the sidebar** — drop the sub-navigation for a cleaner, single-view embed.

Copy the snippet once you're happy with the preview, and paste it wherever you want the dashboard to appear.

## Frequently asked questions

<AccordionGroup>
  <Accordion title="Can I embed a dashboard from a private site?">
    Yes. Generate a **private link key** for the site and the generated `<iframe>` snippet embeds the keyed link, so the site stays private. Regenerate or revoke the key any time to control access. A **public** site's snippet embeds the open share link and needs no key.
  </Accordion>

  <Accordion title="Does the embedded dashboard theme change my own dashboard?">
    No. You can set the embed to light, dark, or follow the viewer's system setting, and an embedded theme never changes your own tinyanalytics dashboard's theme in the same browser.
  </Accordion>

  <Accordion title="Can people who see the embed edit my analytics?">
    No. The embed shows the same read-only dashboard as a [public dashboard](/docs/public-analytics-dashboards). Viewers can browse reports and change the date range, but can't edit anything or reach your settings or account.
  </Accordion>
</AccordionGroup>

## Related

<Columns cols={2}>
  <Card title="Public dashboards" icon="share-nodes" href="/docs/public-analytics-dashboards">
    Share the same view as a link instead of an embed.
  </Card>

  <Card title="Live-visitors widget" icon="chart-simple" href="/docs/live-visitor-count-widget">
    Embed a compact live visitor count instead.
  </Card>

  <Card title="Custom dashboards" icon="table-cells-large" href="/docs/custom-analytics-dashboards">
    Build the dashboard you want to embed.
  </Card>

  <Card title="Teams & site access" icon="users" href="/docs/team-site-access">
    Give teammates full, logged-in access.
  </Card>
</Columns>


## Related topics

- [Public Analytics Dashboards](/docs/public-analytics-dashboards.md)
- [Custom Analytics Dashboards](/docs/custom-analytics-dashboards.md)
- [Web Analytics Dashboard](/docs/web-analytics-dashboard.md)
