Merge pull request #3112 from Safelite/feature/CASH-2433

CASH-2433: Update event label
This commit is contained in:
Chris 2026-03-24 11:45:34 -04:00 committed by GitHub
commit 347ce4e398
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -43,6 +43,7 @@ const GaLabels = {
ADDRESS_LOOKUP: "Address_Look_up",
YES: "yes",
NO: "no",
GLASS_CASH_QUOTE: "GlassCashQuote",
};
const ValueToLogTypes = {

View file

@ -190,6 +190,7 @@ import {
} from "@/helpers/page-prerequisites-helper.js";
import { savePageData } from "@/router/methods/helpers/save-page-data";
import { quotePageDiscountTable } from "../../constants/quote-page-discounts";
import { GaLabels } from "@/constants/analytics";
defineRule("option-required", required(errorMessages.OPTION_REQUIRED));
@ -964,8 +965,7 @@ export default {
priceLabel = price.toFixed(2);
}
}
const subTotalLabel = this.Variables?.CASH_SUBTOTAL;
this.pushVariableToDataLayer?.({ [subTotalLabel]: priceLabel });
this.pushVariableToDataLayer?.({ [this.GaLabels.GLASS_CASH_QUOTE]: priceLabel });
});
},
async skip(insuranceSelection, packageSelection) {