Skip to content

Commit 2795b89

Browse files
authored
Update Readme with resultID (#107)
* Update Readme with resultID * Add section name * Add group param
1 parent 655e31e commit 2795b89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Three types of these events exist:
115115
constructorIO.trackInputFocus(searchTerm: "")
116116

117117
// Track when the user selects an autocomplete suggestion
118-
constructorIO.trackAutocompleteSelect(searchTerm: "toothpicks", originalQuery: "tooth", sectionName: "Search Suggestions")
118+
constructorIO.trackAutocompleteSelect(searchTerm: "toothpicks", originalQuery: "tooth", sectionName: "Search Suggestions", group: CIOGroup(displayName: "Dental Health", groupID: "dental-92dk2", path: "health-2911e/dental-92dk2"), resultID: "179b8a0e-3799-4a31-be87-127b06871de2")
119119

120120
// Track when the user submits a search (either by selecting a suggestion or not selecting a suggestion)
121121
constructorIO.trackSearchSubmit(searchTerm: "toothpicks", originalQuery: "tooth")
@@ -128,7 +128,7 @@ constructorIO.trackSearchSubmit(searchTerm: "toothpicks", originalQuery: "tooth"
128128
constructorIO.trackSearchResultsLoaded(searchTerm: "tooth", resultCount: 789)
129129

130130
// Track when a search result is clicked
131-
constructorIO.trackSearchResultClick(itemName: "Fashionable Toothpicks", customerID: "1234567-AB", searchTerm: "tooth")
131+
constructorIO.trackSearchResultClick(itemName: "Fashionable Toothpicks", customerID: "1234567-AB", searchTerm: "tooth", sectionName: "Products", resultID: "179b8a0e-3799-4a31-be87-127b06871de2")
132132

133133
// Track when a search result converts (a.k.a. is added to cart)
134134
constructorIO.trackConversion(itemName: "Fashionable Toothpicks", customerID: "1234567-AB", revenue: 12.99, searchTerm: "tooth")
@@ -144,5 +144,5 @@ constructorIO.trackPurchase(customerIDs: ["123-AB", "456-CD"])
144144
constructorIO.trackBrowseResultsLoaded(filterName: "Category", filterValue: "Snacks", resultCount: 674)
145145

146146
// Track when a browse result is clicked
147-
constructorIO.trackBrowseResultClick(filterName: "Category", filterValue: "Snacks", customerID: "7654321-BA", resultPositionOnPage: 4)
147+
constructorIO.trackBrowseResultClick(filterName: "Category", filterValue: "Snacks", customerID: "7654321-BA", resultPositionOnPage: 4, sectionName: "Products", resultID: "179b8a0e-3799-4a31-be87-127b06871de2")
148148
```

0 commit comments

Comments
 (0)