DigitalConsumer.FixMyGlass/src/constants/analytics.js
CarlNation 8ab2a25fe4 CASH-1637
CASH-1637 - added 2 new analytics events to capture funnel data
2025-10-06 15:38:18 -04:00

48 lines
1.1 KiB
JavaScript

const analyticsPageEvents = {
ENTRY: "ENTRY",
EVENT: "EVENT",
};
// GA Constants
const GaEvents = {
GENERIC_EVENT: "event",
PAGE_VIEW_EVENT: "logPageview",
FMG_DATA_EVENT_1: "logEvent1",
FMG_DATA_EVENT_2: "logEvent2",
};
const GaCategories = {
API_RESPONSE: "Api_Response",
EVOX: "Evox",
APPOINTMENT: "Appointment",
SERVICE_LOCATION: "service-location",
FMG_SESSION_DATA: "fmg_session_data",
};
const GaActions = {
RESULT: "Result",
CLICKED: "Clicked",
VIF: "vif",
SUBMITTED: "Submitted",
DISPLAYED: "Displayed",
CASH_QUOTE_DISPLAYED: "Cash quote displayed",
MOBILE_AVAILABLE: "mobile_available",
SHOPS_FIRST_DISPLAYED: "shops_first_displayed",
MORE_LOCATIONS_CLICKED: "more_locations_clicked",
};
const GaLabels = {
SUCCESS: "Success",
ERROR: "Error",
LICENSE_PLATE_LOOKUP: "License_Plate_Look_Up",
VIN_LOOKUP: "Vin_Look_Up",
ADDRESS_LOOKUP: "Address_Look_up",
YES: "yes",
NO: "no",
};
const ValueToLogTypes = {
LAST_5: "last_5",
};
export { analyticsPageEvents, GaCategories, GaActions, GaLabels, GaEvents, ValueToLogTypes };