Merged in fix/BOOK-132-tracking-breakfast (pull request #2803)
fix(BOOK-132): add breakfastOption tracking * fix(BOOK-132): add breakfastOption tracking Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -35,15 +35,18 @@ export function trackBreakfastSelection({
|
||||
breakfastPackage,
|
||||
hotelId,
|
||||
units,
|
||||
breakfastOption,
|
||||
}: {
|
||||
breakfastPackage: BreakfastPackages[number]
|
||||
hotelId: string
|
||||
units: number
|
||||
breakfastOption: string
|
||||
}) {
|
||||
trackEvent({
|
||||
event: "breakfastSelection",
|
||||
selection: {
|
||||
name: "breakfast options selection click",
|
||||
breakfastOption,
|
||||
},
|
||||
...(units > 0 && {
|
||||
ancillaries: [
|
||||
|
||||
Reference in New Issue
Block a user