Embed analytics graphs

Embed a sharp daily analytics graph in a website, status page, README, or report, with optional page-view tracking through the same image.

Generate the graph

  1. Open the domain and choose Settings.
  2. Open Embed graph.
  3. Choose Visitors, Pageviews, or Events.
  4. Choose a 7D, 14D, or 30D range.
  5. Copy the image URL or generated HTML embed.

The image follows the Overview panel style, labels the domain and metric on the left, and shows the selected Last xD range on the right.

Completed-day data and caching

The graph excludes the current UTC day. Its analytics series is aggregated on the first request for each metric and range each day, then reused from the daily data cache. The untracked PNG is also edge-cached until the next UTC day.

<img src="https://gumanalytics.com/api/embed-graph/DOMAIN_ID?metric=pageviews&days=14" alt="example.com Pageviews for the last 14 days" width="1200" height="230" style="max-width:100%;height:auto;image-rendering:pixelated" />

Use the graph as a tracking pixel

Enable Track image loads in Settings or add track=1 to the query string. Tracked graph responses use no-store headers and record each image request as a page view, while the completed-day graph data remains cached.

<img src="https://gumanalytics.com/api/embed-graph/DOMAIN_ID?metric=pageviews&days=14&track=1" alt="example.com Pageviews for the last 14 days" referrerpolicy="unsafe-url" width="1200" height="230" style="max-width:100%;height:auto;image-rendering:pixelated" />

Related documentation