From e5becaea979f05cd4100c9ea96e798bedf5e9fe7 Mon Sep 17 00:00:00 2001 From: Brad Parbs Date: Fri, 13 Sep 2024 18:51:29 -0500 Subject: [PATCH] Update marketplace items to use new HTML attributes click tracking --- components/marketplaceItem/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components/marketplaceItem/index.js b/components/marketplaceItem/index.js index ba40b59..aa6db07 100644 --- a/components/marketplaceItem/index.js +++ b/components/marketplaceItem/index.js @@ -135,6 +135,9 @@ const MarketplaceItem = ( { item, methods, constants } ) => { target="_blank" data-action="load-nfd-ctb" data-ctb-id={ item.clickToBuyId } + data-nfd-click="newfold-marketplaceitem-click" + data-nfd-event-key={ item.primaryCallToAction } + data-nfd-product-id={ item.clickToBuyId } > { item.primaryCallToAction } @@ -187,7 +190,12 @@ const MarketplaceItem = ( { item, methods, constants } ) => { if ( item.secondaryCallToAction && item.secondaryUrl ) { secondaryCTA = ( - + { item.secondaryCallToAction }