Analytics - Public

Get page analytics

Get analytics for a specific page.

Returns page views, unique visitors, and engagement metrics for any page.

Args:

  • domain: Website domain (query parameter)
  • page_url: Page URL path (e.g., "/viaturas", "/about", "/contact")

Returns:

{
  "page_url": "/viaturas",
  "total_views": 2341,
  "total_views_janela": 312,
  "unique_visitors": 1823,
  "views_24h": 156,
  "views_7d": 892,
  "avg_time_on_page": 145,
  "bounce_rate": 0.42,
  "last_viewed_at": "2025-12-21T14:30:00Z",
  "janela_dias": 30,
  "janela_desde": "2025-11-21T14:30:00",
  "totais_origem": "resumo"
}

Metrics:

  • page_url: The page URL
  • total_views: Total page views (all time) — do resumo diário
  • total_views_janela: Views nos últimos janela_dias dias
  • unique_visitors: Unique visitors to this page (NA JANELA)
  • views_24h: Views in last 24 hours
  • views_7d: Views in last 7 days
  • avg_time_on_page: Average seconds on page (NA JANELA)
  • bounce_rate: Bounce rate (0.0 - 1.0) (NA JANELA)
  • last_viewed_at: Last view timestamp (NA JANELA — null se a página não for vista há mais de janela_dias dias, mesmo com total_views > 0)
  • totais_origem: "resumo" ou "janela"
get/public/analytics/page/stats

Request

  • Base URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/public/analytics/page/stats
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Query parameters

domainstring required

Website domain

page_urlstring required

Page URL (e.g., /viaturas, /about, /contact)

Headers

x-website-tokenstring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 21 revisions of this API.