Added initial detailed bailout messaging.
This commit is contained in:
parent
7cc17b4f3f
commit
61d28ac56f
2 changed files with 5 additions and 2 deletions
|
|
@ -15,6 +15,7 @@ const GaEvents = Object.freeze({
|
|||
const GaCategories = Object.freeze({
|
||||
API_RESPONSE: 'Api_Response',
|
||||
BAILOUT: 'Bailout',
|
||||
BAILOUT_DETAILS: 'Bailout-Details',
|
||||
CONFIRMATION_CLICKED: "confirmation clicked",
|
||||
CONFIRMATION_CLICKED_INSHOP: "inshop confirmation clicked",
|
||||
CONFIRMATION_CLICKED_MOBILE: "mobile confirmation clicked",
|
||||
|
|
|
|||
|
|
@ -119,10 +119,12 @@ export default {
|
|||
// Only log bailout event if user is coming from a different page.
|
||||
// This ensures that we cannot get stuck in a loop, if the bailout-page ever bails out.
|
||||
if (fromPage !== issPageValues.BAILOUT_PAGE) {
|
||||
const bailoutCode = useMainStore().pageData(issPageValues.BAILOUT_PAGE).bailoutCode;
|
||||
const bailoutCode = useMainStore().pageData(issPageValues.BAILOUT_PAGE).bailoutCode;
|
||||
const bailoutErrorMessage = useMainStore().pageData(issPageValues.BAILOUT_PAGE).errorMessage;
|
||||
const bailoutString = Object.keys(BailoutCode).find(key => BailoutCode[key] === bailoutCode);
|
||||
analyticsMixIn.methods.pushEventToGA(GaCategories.BAILOUT_DETAILS, bailoutString, "Page: " + fromPage + " - Error Message: " + bailoutErrorMessage, true, null, null);
|
||||
analyticsMixIn.methods.pushEventToGA(GaCategories.BAILOUT, bailoutString, fromPage, true, null, null);
|
||||
}
|
||||
}
|
||||
|
||||
// Call APIs
|
||||
const cmsContentPromise = fetchCmsContentForPage(to.query.issPage);
|
||||
|
|
|
|||
Loading…
Reference in a new issue