Commit 60bd6778 authored by Tyler Williams's avatar Tyler Williams

Use confirmOrderParams quantity for GTM quantity values

parent dd3faa89
......@@ -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