Skip to content

Commit c18458c

Browse files
authored
chore: add custom item attribute in readme (#42)
1 parent eb441ae commit c18458c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ let item_book: ClickstreamAttribute = [
159159
ClickstreamAnalytics.Item.ITEM_ID: 123,
160160
ClickstreamAnalytics.Item.ITEM_NAME: "Nature",
161161
ClickstreamAnalytics.Item.ITEM_CATEGORY: "book",
162-
ClickstreamAnalytics.Item.PRICE: 99.9
162+
ClickstreamAnalytics.Item.PRICE: 99.9,
163+
"book_publisher": "Nature Research"
163164
]
164165
ClickstreamAnalytics.recordEvent("view_item", attributes, [item_book])
165166
```

0 commit comments

Comments
 (0)