From e7145f2a9f07b1623ad10b7f450ace359b328ea2 Mon Sep 17 00:00:00 2001 From: ollie_abrahams Date: Tue, 20 Jan 2026 14:02:22 +0000 Subject: [PATCH] Add click tracking for the carousel cards with index. --- .../ScrollableProduct.importable.tsx | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/dotcom-rendering/src/components/ScrollableProduct.importable.tsx b/dotcom-rendering/src/components/ScrollableProduct.importable.tsx index 884f7878c67..3b5bdb6e2b8 100644 --- a/dotcom-rendering/src/components/ScrollableProduct.importable.tsx +++ b/dotcom-rendering/src/components/ScrollableProduct.importable.tsx @@ -324,19 +324,23 @@ export const ScrollableProduct = ({ products, format }: Props) => { data-heatphan-type="carousel" onFocus={scrollToCardOnFocus} > - {products.map((product: ProductBlockElement) => ( -
  • - -
  • - ))} + {products.map( + (product: ProductBlockElement, index: number) => ( +
  • + +
  • + ), + )}