Skip to content

Commit

Permalink
fix: ConversionTracked had an option that is not available in the schema
Browse files Browse the repository at this point in the history
  • Loading branch information
julianajlk committed Nov 8, 2024
1 parent 64ff687 commit ec9d660
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/payment/data/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,7 @@ export function* handleSubmitPayment({ payload }) {
// RV tracking for successful Stripe Payment
if (method === 'stripe') {
// Metada for conversion_category and conversion_action:
// Sucessful payment = 'Order' and 'Completed'
// Failed payment = 'Enrollment' and 'Declined'
tagularElement.category = 'Order';
tagularElement.category = 'Enrollment';
tagularElement.action = 'Completed';
yield put(trackPaymentButtonClick(tagularElement));
}
Expand All @@ -255,7 +253,7 @@ export function* handleSubmitPayment({ payload }) {
} else {
// RV tracking for failed Stripe Payment
if (method === 'stripe') {
tagularElement.category = 'Enrollment';
tagularElement.category = 'Cart';
tagularElement.action = 'Declined';
yield put(trackPaymentButtonClick(tagularElement));
}
Expand Down

0 comments on commit ec9d660

Please sign in to comment.