From c18458c7eddb2a8dafdc8adc8592b104fd3677df Mon Sep 17 00:00:00 2001 From: Xiaowei Zhu <33129495+zhu-xiaowei@users.noreply.github.com> Date: Thu, 14 Dec 2023 22:55:00 +0800 Subject: [PATCH] chore: add custom item attribute in readme (#42) --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e96d05..54178a6 100644 --- a/README.md +++ b/README.md @@ -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]) ```