{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "title": "Fernhollow analytics hit",
 "description": "Every hit sent to the collection endpoint: the fields of its data layer event, the same rules, plus these envelope fields. email_domain is added by the demo_request and asset_download tags. consent_update never becomes a hit.",
 "type": "object",
 "required": [
  "v",
  "event",
  "event_id",
  "visitor_id",
  "session_id",
  "ts"
 ],
 "properties": {
  "v": {
   "const": 1
  },
  "event": {
   "type": "string"
  },
  "event_id": {
   "type": "string",
   "pattern": "^e[a-z0-9]{8,24}$"
  },
  "visitor_id": {
   "type": "string",
   "pattern": "^v[a-z0-9]{6,20}$"
  },
  "session_id": {
   "type": "string",
   "pattern": "^s[a-z0-9]{6,20}$"
  },
  "ts": {
   "type": "integer",
   "minimum": 1000000000000
  },
  "email_domain": {
   "type": "string",
   "pattern": "^[a-z0-9.-]+\\.[a-z]{2,}$"
  }
 },
 "lead_events_require": [
  "email_domain"
 ]
}
