Skip to content

Commit

Permalink
Added GrowthBook experiment_viewed event tracking schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Auz committed Jan 7, 2025
1 parent b75db7c commit 7541e66
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
18 changes: 18 additions & 0 deletions jsonpaths/com.growthbook/experiment_viewed_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"jsonpaths": [
"$.schema.vendor",
"$.schema.name",
"$.schema.format",
"$.schema.version",
"$.hierarchy.rootId",
"$.hierarchy.rootTstamp",
"$.hierarchy.refRoot",
"$.hierarchy.refTree",
"$.hierarchy.refParent",
"$.data.experimentId",
"$.data.variationId",
"$.data.hashAttribute",
"$.data.hashValue",
"$.data.custom"
]
}
44 changes: 44 additions & 0 deletions schemas/com.growthbook/experiment_viewed/jsonschema/1-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for an GrowthBook experiment viewed event",
"self": {
"vendor": "com.growthbook",
"name": "experiment_viewed",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"experimentId": {
"type": "string",
"maxLength": 160
},
"variationId": {
"type": "string",
"maxLength": 100
},
"hashAttribute": {
"type": "string",
"maxLength": 100
},
"hashValue": {
"type": "string",
"maxLength": 160
},
"custom": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": ["string", "null"]
}
}
}
}
},
"required": ["experimentId", "variationId"]
}

0 comments on commit 7541e66

Please sign in to comment.