Commit c019de1b authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch 'fix/gtm-enhanced-ecommerce-quantity-value' into 'master'

Use confirmOrderParams quantity for GTM quantity values

See merge request gitlab-org/gitlab!80100
parents b0655bf1 60bd6778
......@@ -12,7 +12,7 @@ import * as types from './mutation_types';
export const updateSelectedPlan = ({ commit, getters }, selectedPlan) => {
commit(types.UPDATE_SELECTED_PLAN, selectedPlan);
commit(types.UPDATE_NUMBER_OF_USERS, getters.selectedGroupUsers);
trackCheckout(selectedPlan, getters.selectedGroupUsers);
trackCheckout(selectedPlan, getters.confirmOrderParams?.subscription?.quantity);
};
export const updateSelectedGroup = ({ commit, getters }, selectedGroup) => {
......@@ -200,7 +200,7 @@ export const confirmOrder = ({ getters, dispatch, commit }) => {
revenue: getters.totalExVat,
tax: getters.vat,
selectedPlan: getters.selectedPlanDetails?.value,
quantity: getters.selectedGroupUsers,
quantity: getters.confirmOrderParams?.subscription?.quantity,
};
trackTransaction(transactionDetails);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment