Skip to content

Commit

Permalink
fix: Missing webElement
Browse files Browse the repository at this point in the history
  • Loading branch information
julianajlk committed Nov 5, 2024
1 parent c2be3c1 commit db2c034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/payment/data/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const trackPaymentButtonClick = tagularElement => {
correlation: {
id: getCorrelationID(),
},
metadata: tagularElement,
webElement: tagularElement,
};
tagularEvent(EventMap.ElementClicked, conversionEvent);

Expand All @@ -106,7 +106,7 @@ export const trackElementIntersection = tagularElement => {
// so only add the correlation ID if this is a viewed from the coupon application click
const viewedEvent = {
...(tagularElement.name === 'promotional-code' ? { correlation: { id: getCorrelationID() } } : null),
metadata: tagularElement,
webElement: tagularElement,
};
tagularEvent(EventMap.ElementViewed, viewedEvent);

Expand Down

0 comments on commit db2c034

Please sign in to comment.