Skip to content

Instantly share code, notes, and snippets.

@slawluc
Last active May 19, 2024 18:01
Show Gist options
  • Save slawluc/60d683e017d4c5865f75b00ce95dc8ae to your computer and use it in GitHub Desktop.
Save slawluc/60d683e017d4c5865f75b00ce95dc8ae to your computer and use it in GitHub Desktop.
Segment.json
{
"type": "track",
"event": "button_click",
"properties": {
"category": "user_interaction",
"action": "click",
"label": "sign_up_button",
"value": 1
},
"userId": "user12345",
"anonymousId": "anon12345",
"context": {
"page": {
"title": "Homepage",
"url": "https://example.com",
"path": "/"
},
"userAgent": "Mozilla/5.0",
"ip": "192.168.1.1"
},
"timestamp": "2024-05-19T12:34:56.789Z",
"messageId": "msg12345",
"receivedAt": "2024-05-19T12:34:57.000Z",
"sentAt": "2024-05-19T12:34:56.500Z",
"integrations": {
"All": true
}
}
{
"messageId": "segment-test-message-qxvun9",
"timestamp": "2024-05-19T17:15:54.768Z",
"type": "track",
"email": "test@example.org",
"projectId": "r8qZq5MgFLCoBRTo8wTiez",
"properties": {
"property1": 1,
"property2": "test",
"property3": true
},
"userId": "test-user-8upkb6",
"event": "Segment Test Event Name"
}
{
"messageId": "segment-test-message-yhixde",
"timestamp": "2024-05-19T18:00:40.527Z",
"type": "identify",
"email": "test@example.org",
"projectId": "r8qZq5MgFLCoBRTo8wTiez",
"traits": {
"trait1": 1,
"trait2": "test",
"trait3": true
},
"userId": "test-user-53lovw"
}
{
"messageId": "segment-test-message-zvuhbg",
"timestamp": "2024-05-19T18:01:15.283Z",
"type": "page",
"email": "test@example.org",
"projectId": "r8qZq5MgFLCoBRTo8wTiez",
"properties": {
"property1": 1,
"property2": "test",
"property3": true
},
"userId": "test-user-shl7v9",
"name": "Home Page"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment