Skip to content

Commit

Permalink
Merge pull request #17 from AnkitSiva/session_id
Browse files Browse the repository at this point in the history
RFC/PROPOSAL: add session_id to event.schema
  • Loading branch information
epugh authored Aug 31, 2024
2 parents 6edc581 + c6d0e48 commit d6d27a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion schema/1.0.0/event.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "Event tracking for UBI",
"description": "Version 1.0.0; last updated 2024-06-14. An event that occurred, typically in response to a user.",
"type": "object",
"required": ["action_name", "query_id", "timestamp"],
"required": ["action_name", "query_id", "session_id", "timestamp"],
"properties": {
"application": {
"description": "name of the application tracking UBI events.",
Expand Down Expand Up @@ -45,6 +45,12 @@
}
]
},
"session_id": {
"description": "The session of the user creating the interactions. This allows us to correlate the interactions with the other events created by a service that recognizes session IDs. Can be used to track unique visits for authenticated and anonymous users.",
"type": "string",
"maxLength": 100,
"examples": ["84266fdbd31d4c2c6d0665f7e8380fa3"]
},
"client_id": {
"description": "The client issuing the query. This could be a unique browser, a microservice that performs searches, a crawling bot. If only authenticated users are tracked, then you could use a specific user id here, otherwise you should use something permanent and track user id as an _Additional Property_.",
"type": "string",
Expand Down

0 comments on commit d6d27a7

Please sign in to comment.