Analytics - Public

Get global website statistics

Changed on

Get global website statistics.

Returns total visits, page views, and leads for the entire website.

Args:

  • domain: Website domain (query parameter)

Returns:

{
  "total_visits": 1543,
  "total_page_views": 8921,
  "total_visits_janela": 210,
  "total_page_views_janela": 940,
  "total_leads": 234,
  "janela_dias": 30,
  "janela_desde": "2025-11-21T14:30:00",
  "totais_origem": "resumo"
}

Metrics:

  • total_visits: Total unique visitors to the website (DE SEMPRE, do resumo)
  • total_page_views: Total page views across all pages (DE SEMPRE, do resumo)
  • total_visits_janela / total_page_views_janela: os mesmos números restritos aos últimos janela_dias dias — a única coisa que website_visitor_events passa a guardar
  • total_leads: Total leads generated for this website
  • totais_origem: "resumo" ou "janela" (enquanto o resumo não estiver preenchido, os totais não podem ser menores do que a janela já mediu)
get/public/analytics/website/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/website/stats
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Query parameters

domainstring required

Website domain

Headers

x-website-tokenstring required

Response

Successful Response

unknown required

Changes

    • breaking

      the header request parameter x-website-token became required

    • breaking

      header request parameter x-website-token list-of-types was narrowed by removing types null

    • info

      for the header request parameter x-website-token, the type was generalized from no type to string