Skip to content

Commit 8ffd484

Browse files
authored
Override context value for node library
1 parent 5491641 commit 8ffd484

File tree

1 file changed

+17
-0
lines changed
  • src/connections/sources/catalog/libraries/server/node

1 file changed

+17
-0
lines changed

src/connections/sources/catalog/libraries/server/node/index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,23 @@ const analytics = new Analytics({
634634
httpClient: new CustomClient()
635635
})
636636
```
637+
##Override Context Value
638+
```
639+
analytics.track({
640+
anonymousId: '48d213bb-95c3-4f8d-af97-86b2b404dcfe',
641+
event: 'New Test',
642+
properties: {
643+
revenue: 39.95,
644+
shippingMethod: '2-day'
645+
},
646+
context: {
647+
traits: {
648+
"email": "[email protected]"
649+
}
650+
}
651+
});
652+
```
653+
637654
638655
## Troubleshooting
639656

0 commit comments

Comments
 (0)