Updates.
This commit is contained in:
parent
5b945585c5
commit
5ef256dd38
2 changed files with 7 additions and 7 deletions
|
|
@ -69,7 +69,7 @@ export default {
|
||||||
action: action,
|
action: action,
|
||||||
label: labelToLog,
|
label: labelToLog,
|
||||||
value: undefined,
|
value: undefined,
|
||||||
path: `/fmg/?${queryStrings.FMG_PAGE}=${currentPageName}`,
|
path: `/iss/?${queryStrings.ISS_PAGE}=${currentPageName}`,
|
||||||
};
|
};
|
||||||
|
|
||||||
pushToDataLayerIfDefined(eventToBePushed);
|
pushToDataLayerIfDefined(eventToBePushed);
|
||||||
|
|
@ -83,7 +83,7 @@ export default {
|
||||||
const currentPageName = getPageNameByQueryString();
|
const currentPageName = getPageNameByQueryString();
|
||||||
const pageViewEvent = {
|
const pageViewEvent = {
|
||||||
event: GaEvents.PAGE_VIEW_EVENT,
|
event: GaEvents.PAGE_VIEW_EVENT,
|
||||||
pagePath: `/fmg/?${queryStrings.FMG_PAGE}=${currentPageName}`,
|
pagePath: `/iss/?${queryStrings.ISS_PAGE}=${currentPageName}`,
|
||||||
pageTitle: currentPageName,
|
pageTitle: currentPageName,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -199,8 +199,8 @@ function pushToDataLayerIfDefined(data) {
|
||||||
function getPageNameByQueryString() {
|
function getPageNameByQueryString() {
|
||||||
const params = new URLSearchParams(location.search);
|
const params = new URLSearchParams(location.search);
|
||||||
|
|
||||||
if (params.has(queryStrings.FMG_PAGE)) {
|
if (params.has(queryStrings.ISS_PAGE)) {
|
||||||
return params.get(queryStrings.FMG_PAGE);
|
return params.get(queryStrings.ISS_PAGE);
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ describe("analyticsMixin.js", () => {
|
||||||
action: "action",
|
action: "action",
|
||||||
label: "label",
|
label: "label",
|
||||||
value: undefined,
|
value: undefined,
|
||||||
path: "/fmg/?fmgPage=",
|
path: "/iss/?issPage=",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
|
|
@ -90,7 +90,7 @@ describe("analyticsMixin.js", () => {
|
||||||
action: "action",
|
action: "action",
|
||||||
label: "33333",
|
label: "33333",
|
||||||
value: undefined,
|
value: undefined,
|
||||||
path: "/fmg/?fmgPage=",
|
path: "/iss/?issPage=",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
|
|
@ -116,7 +116,7 @@ describe("analyticsMixin.js", () => {
|
||||||
action: "action",
|
action: "action",
|
||||||
label: "111",
|
label: "111",
|
||||||
value: undefined,
|
value: undefined,
|
||||||
path: "/fmg/?fmgPage=",
|
path: "/iss/?issPage=",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue