Skip to content

Commit

Permalink
chore: add custom item attribute in readme (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu-xiaowei authored Dec 14, 2023
1 parent eb441ae commit c18458c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ let item_book: ClickstreamAttribute = [
ClickstreamAnalytics.Item.ITEM_ID: 123,
ClickstreamAnalytics.Item.ITEM_NAME: "Nature",
ClickstreamAnalytics.Item.ITEM_CATEGORY: "book",
ClickstreamAnalytics.Item.PRICE: 99.9
ClickstreamAnalytics.Item.PRICE: 99.9,
"book_publisher": "Nature Research"
]
ClickstreamAnalytics.recordEvent("view_item", attributes, [item_book])
```
Expand Down

0 comments on commit c18458c

Please sign in to comment.