Plugin Framework - Heap Event Message Schema
Be cautious when modifying event messagesWithin this document, we will be sharing a subset of the properties on our event messages. When implementing a transformer, there may be additional properties not detailed in this document.
Avoid modifying these properties as they may be vital for Heap analysis
Base Event Message Scheme
Property | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
All event messages will be structured as noted above. In particular, data is where any modifications to the event payload should occur. We have 4 types of EventMessage which will be detailed in the subsequent sections:
- Track Event Message
- User Metadata Event Message
- Session Metadata Event Message
- Pageview Metadata Event Message
Track Event Message Schema
Property | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
| |
|
| |
|
| |
|
| |
|
|
|
Example Interaction Track Event Message (click)
{
"id":"4862784210443237",
"type":"core_track",
"data":{
"id":"4862784210443237",
"time":1695772367625,
"env_id":"2448354216",
"user_id":"6772334287318949",
"base_library":{
"name":"web",
"version":"5.0",
"platform":"web"
},
"device":{
"user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
"uach":{
"model":"",
"platform_version":"12.3.0",
"browser_version":"116.0.5845.187"
}
},
"session_info":{
"time":1695771981608,
"referrer":"",
"id":"4648187408605516",
"search_keyword":"",
"utm":{
"source":"",
"medium":"",
"term":"",
"content":"",
"campaign":""
},
"initial_pageview_info":{
"time":1695771981608,
"id":"3495395863577351",
"title":"",
"url":{
"domain":"jamesnghiem.github.io",
"path":"/redirect-test/",
"query":"?test=1234",
"hash":""
},
"source_properties":{
"screen_height":879,
"screen_width":1262
}
}
},
"pageview_info":{
"time":1695771981608,
"id":"3495395863577351",
"url":{
"domain":"jamesnghiem.github.io",
"path":"/redirect-test/",
"query":"?test=1234",
"hash":""
},
"title":"",
"source_properties":{
"screen_height":879,
"screen_width":1262
}
},
"event":{
"interaction":{
"kind":"BUILTIN_KIND_CLICK",
"hierarchy":"@h2;|",
"nodes":[
{
"tagName":"h2",
"id":null,
"classes":[],
"attributes":[],
"heapRedactedAttributes":[],
"targetText":"for ted"
}
]
}
},
"source_library":{
"name":"autotrack",
"version":"0.0.0"
}
}
}Example Custom Track Event Message
{
"id":"6593488158485448",
"type":"core_track",
"info":{
"event":"custom track event",
"properties":{
"isCustom":true,
"date":"9/26/2023"
},
"isAutotrack":false
},
"data":{
"id":"6593488158485448",
"time":1695772229848,
"env_id":"2448354216",
"user_id":"6772334287318949",
"base_library":{
"name":"web",
"version":"5.0",
"platform":"web"
},
"device":{
"user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
"uach":{
"model":"",
"platform_version":"12.3.0",
"browser_version":"116.0.5845.187"
}
},
"session_info":{
"time":1695771981608,
"referrer":"",
"id":"4648187408605516",
"search_keyword":"",
"utm":{
"source":"",
"medium":"",
"term":"",
"content":"",
"campaign":""
},
"initial_pageview_info":{
"time":1695771981608,
"id":"3495395863577351",
"title":"",
"url":{
"domain":"jamesnghiem.github.io",
"path":"/redirect-test/",
"query":"?test=1234",
"hash":""
},
"source_properties":{
"screen_height":879,
"screen_width":1262
}
}
},
"pageview_info":{
"time":1695771981608,
"id":"3495395863577351",
"url":{
"domain":"jamesnghiem.github.io",
"path":"/redirect-test/",
"query":"?test=1234",
"hash":""
},
"title":"",
"source_properties":{
"screen_height":879,
"screen_width":1262
}
},
"event":{
"custom":{
"name":"custom track event",
"properties":{
"isCustom":true,
"date":"9/26/2023"
}
}
}
}
}Custom Message
Property | Type | Description |
|---|---|---|
|
|
|
|
|
|
Interaction Message
Property | Type | Description |
|---|---|---|
|
|
|
| Array<ElementNode> |
|
Element Node
Only modifications to the targetText will be persisted. Modifications to any other property will not change the captured hierarchy string.
Property | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Metadata Event Message Schema
User Message
Property | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
Example User Metadata Event Message
{
"type":"meta_user",
"id":"6772334287318949",
"data":{
"time":1695771981608,
"id":"6772334287318949",
"user_id":"6772334287318949",
"base_library":{
"name":"web",
"version":"5.0",
"platform":"web"
},
"device":{
"user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
"uach":{
"model":"",
"platform_version":"12.3.0",
"browser_version":"116.0.5845.187"
}
},
"env_id":"2448354216",
"user":{
"time":1695771981608,
"id":"6772334287318949",
"initial_session_info":{
"referrer":"",
"time":1695771981608,
"id":"4648187408605516",
"search_keyword":"",
"utm":{
"source":"",
"medium":"",
"term":"",
"content":"",
"campaign":""
},
"initial_pageview_info":{
"time":1695771981608,
"id":"3495395863577351",
"url":{
"domain":"jamesnghiem.github.io",
"path":"/redirect-test/",
"query":"?test=1234",
"hash":""
},
"source_properties":{
"screen_height":879,
"screen_width":1262
}
}
}
}
}
}Session Message
Property | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
Example Session Metadata Event Message
{
"type":"meta_session",
"id":"4648187408605516",
"data":{
"time":1695771981608,
"id":"4648187408605516",
"env_id":"2448354216",
"user_id":"6772334287318949",
"base_library":{
"name":"web",
"version":"5.0",
"platform":"web"
},
"device":{
"user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
"uach":{
"model":"",
"platform_version":"12.3.0",
"browser_version":"116.0.5845.187"
}
},
"session_info":{
"time":1695771981608,
"referrer":"",
"id":"4648187408605516",
"search_keyword":"",
"utm":{
"source":"",
"medium":"",
"term":"",
"content":"",
"campaign":""
},
"initial_pageview_info":{
"time":1695771981608,
"id":"3495395863577351",
"title":"",
"url":{
"domain":"jamesnghiem.github.io",
"path":"/redirect-test/",
"query":"?test=1234",
"hash":""
},
"source_properties":{
"screen_height":879,
"screen_width":1262
}
}
},
"session":{}
}
}Pageview Message
Property | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
Example Pageview Metadata Event Message
{
"type":"meta_pageview",
"id":"6899501780283694",
"data":{
"time":1695771155484,
"id":"6899501780283694",
"env_id":"2448354216",
"user_id":"3251430901129913",
"base_library":{
"name":"web",
"version":"5.0",
"platform":"web"
},
"device":{
"user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
"uach":{
"model":"",
"platform_version":"12.3.0",
"browser_version":"116.0.5845.187"
}
},
"session_info":{
"time":1695770971484,
"referrer":"",
"id":"5490251667124630",
"search_keyword":"",
"utm":{
"source":"",
"medium":"",
"term":"",
"content":"",
"campaign":""
},
"initial_pageview_info":{
"time":1695770971484,
"id":"8057529591957585",
"title":"",
"url":{
"domain":"jamesnghiem.github.io",
"path":"/strict-csp/",
"query":"",
"hash":""
},
"source_properties":{
"screen_height":879,
"screen_width":1728
}
}
},
"pageview_info":{
"time":1695771155484,
"id":"6899501780283694",
"url":{
"domain":"jamesnghiem.github.io",
"path":"/redirect-test/",
"query":"",
"hash":""
},
"title":"",
"source_properties":{
"screen_height":879,
"screen_width":849
}
},
"pageview":{}
}
}Shared Property Schema
User Information
Property | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Session Information
Property | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Pageview Information
Property | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Updated 7 days ago