Pirsch · Schema

HitRequest

Request body for sending a single page view to Pirsch

AnalyticsWeb AnalyticsPrivacyGDPRCookie-FreePage ViewsSessionsEventsConversion GoalsFunnelsTraffic Sources

Properties

Name Type Description
url string Full URL of the page viewed
ip string Visitor IP address (IPv4 or IPv6)
user_agent string Visitor User-Agent header value
accept_language string Accept-Language header value
referrer string HTTP Referer header value
title string Page title
sec_ch_ua string Sec-CH-UA client hint
sec_ch_ua_mobile string Sec-CH-UA-Mobile client hint
sec_ch_ua_platform string Sec-CH-UA-Platform client hint
screen_width integer Screen width in pixels
screen_height integer Screen height in pixels
disable_bot_filter boolean Disable bot filtering for this hit
tags object Custom key-value tags
View JSON Schema on GitHub

JSON Schema

pirsch-hit-request.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/pirsch/main/json-schema/pirsch-hit-request.json",
  "title": "HitRequest",
  "description": "Request body for sending a single page view to Pirsch",
  "type": "object",
  "required": ["url", "ip", "user_agent"],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Full URL of the page viewed"
    },
    "ip": {
      "type": "string",
      "description": "Visitor IP address (IPv4 or IPv6)"
    },
    "user_agent": {
      "type": "string",
      "description": "Visitor User-Agent header value"
    },
    "accept_language": {
      "type": "string",
      "description": "Accept-Language header value"
    },
    "referrer": {
      "type": "string",
      "description": "HTTP Referer header value"
    },
    "title": {
      "type": "string",
      "description": "Page title"
    },
    "sec_ch_ua": {
      "type": "string",
      "description": "Sec-CH-UA client hint"
    },
    "sec_ch_ua_mobile": {
      "type": "string",
      "description": "Sec-CH-UA-Mobile client hint"
    },
    "sec_ch_ua_platform": {
      "type": "string",
      "description": "Sec-CH-UA-Platform client hint"
    },
    "screen_width": {
      "type": "integer",
      "description": "Screen width in pixels"
    },
    "screen_height": {
      "type": "integer",
      "description": "Screen height in pixels"
    },
    "disable_bot_filter": {
      "type": "boolean",
      "description": "Disable bot filtering for this hit"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Custom key-value tags"
    }
  }
}