Skip to content

Commit

Permalink
fix: Feedback edits
Browse files Browse the repository at this point in the history
  • Loading branch information
julianajlk committed Nov 5, 2024
1 parent c2be3c1 commit bf0543f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/cohesion/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const EventMap = {
FieldSelected: 'redventures.usertracking.v3.FieldSelected',
FormSubmitted: 'redventures.usertracking.v3.FormSubmitted',
FormViewed: 'redventures.usertracking.v3.FormViewed',
ConversionTracked: 'core.conversions.ConversionTracked.v2',
};

export const IS_FULLY_SHOWN_THRESHOLD_OR_MARGIN = 1.0;
Expand Down
4 changes: 2 additions & 2 deletions src/payment/data/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const trackPaymentButtonClick = tagularElement => {
},
metadata: tagularElement,
};
tagularEvent(EventMap.ElementClicked, conversionEvent);
tagularEvent(EventMap.ConversionTracked, conversionEvent);

return {
type: TRACK_PAYMENT_BUTTON_CLICK,
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 bf0543f

Please sign in to comment.