{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/we-inc/json-schema/we-inc-analytics-schema.json",
  "title": "Analytics",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/we-inc-openapi.json#/components/schemas/Analytics",
  "type": "object",
  "properties": {
    "totalViews": {
      "type": "integer"
    },
    "uniqueVisitors": {
      "type": "integer"
    },
    "topPages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "views": {
            "type": "integer"
          }
        }
      }
    },
    "topReferrers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "referrer": {
            "type": "string"
          },
          "views": {
            "type": "integer"
          }
        }
      }
    },
    "dailyViews": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "views": {
            "type": "integer"
          }
        }
      }
    },
    "deviceBreakdown": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "device": {
            "type": "string"
          },
          "views": {
            "type": "integer"
          }
        }
      }
    }
  }
}